mirror of
https://github.com/dualshock-tools/dualshock-tools.github.io.git
synced 2026-03-01 11:19:54 +03:00
Reintroduce broken code to un-break the writing of finetune changes to Edge modules
This commit is contained in:
committed by
dualshock-tools
parent
7b19117311
commit
aeb7e9010a
7
core.js
7
core.js
@@ -1362,7 +1362,7 @@ async function ds5_get_inmemory_module_data() {
|
||||
}
|
||||
|
||||
async function read_finetune_data() {
|
||||
data = ds5_get_inmemory_module_data();
|
||||
data = ds5_get_inmemory_module_data(); //mm there's also a missing await here
|
||||
if(data == null) {
|
||||
finetune_close();
|
||||
show_popup("ERROR: Cannot read calibration data");
|
||||
@@ -1378,8 +1378,9 @@ async function write_finetune_data(data) {
|
||||
return;
|
||||
}
|
||||
|
||||
const deepEqual = (a, b) => JSON.stringify(a) === JSON.stringify(b);
|
||||
if (deepEqual(data, finetune.last_written_data)) {
|
||||
// const deepEqual = (a, b) => JSON.stringify(a) === JSON.stringify(b);
|
||||
// if (deepEqual(data, finetune.last_written_data)) {
|
||||
if (data == last_written_finetune_data) { //mm this will never be true, but fixing it (per above) breaks Edge writes
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user