From aeb7e9010a93d08d647a2f8a06f95474e20f578a Mon Sep 17 00:00:00 2001 From: Mathias Malmqvist Date: Sat, 13 Sep 2025 01:46:49 +0200 Subject: [PATCH] Reintroduce broken code to un-break the writing of finetune changes to Edge modules --- core.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core.js b/core.js index 4ced861..6d13166 100644 --- a/core.js +++ b/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; }