From 25f0cce1ff3cbca1d8b524df21e717ceaf874892 Mon Sep 17 00:00:00 2001 From: mattmcw Date: Sun, 12 Jan 2025 14:03:58 -0500 Subject: [PATCH] Resolved a bug that was preventing callback from working. Previously only worked because of a race condition introduced by a setTimeout --- app/data/cfg.json | 2 +- app/lib/ui/cam.js | 4 +--- app/lib/ui/gamecontroller.js.map | 2 +- app/lib/ui/proj.js | 4 +--- app/package-lock.json | 2 +- app/package.json | 2 +- data/cfg.json | 2 +- package-lock.json | 4 ++-- package.json | 2 +- processing/mcopy/cfg.json | 2 +- 10 files changed, 11 insertions(+), 15 deletions(-) diff --git a/app/data/cfg.json b/app/data/cfg.json index 323a7bc..b8eca91 100644 --- a/app/data/cfg.json +++ b/app/data/cfg.json @@ -1,5 +1,5 @@ { - "version": "1.8.152", + "version": "1.8.153", "ext_port": 1111, "profiles": { "mcopy": { diff --git a/app/lib/ui/cam.js b/app/lib/ui/cam.js index 06f072c..7c30574 100644 --- a/app/lib/ui/cam.js +++ b/app/lib/ui/cam.js @@ -102,13 +102,11 @@ cam.end = function (c, id, ms) { timing.update(c, ms); gui.counterUpdate('cam', cam.pos); if (typeof cam.queue[id] !== 'undefined') { + cam.lock = false; if (typeof cam.queue[id].callback !== 'undefined') { cam.queue[id].callback(ms); - } else { - log.info('NO CAM CALLBACK') } delete cam.queue[id]; - cam.lock = false; } }; diff --git a/app/lib/ui/gamecontroller.js.map b/app/lib/ui/gamecontroller.js.map index 028892d..754e26c 100644 --- a/app/lib/ui/gamecontroller.js.map +++ b/app/lib/ui/gamecontroller.js.map @@ -1 +1 @@ -{"version":3,"file":"gamecontroller.js","sourceRoot":"","sources":["../../src/lib/ui/gamecontroller.ts"],"names":[],"mappings":";;;;;;;;;AAAA,IAAI,cAA+B,CAAC;AAEpC,MAAM,cAAc;IAUlB;QAHQ,iBAAY,GAAa,KAAK,CAAC;QAC/B,oBAAe,GAAa,KAAK,CAAC;IAI1C,CAAC;IAEM,IAAI,CAAE,GAAc,EAAE,GA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CAAC;aACnB;QACH,CAAC;KAAA;CACF;AAGD,cAAc,GAAG,IAAI,cAAc,EAAE,CAAC;AACtC,MAAM,CAAC,OAAO,GAAG,cAAc,CAAC"} \ No newline at end of file diff --git a/app/lib/ui/proj.js b/app/lib/ui/proj.js index 346a41c..39fb2bb 100644 --- a/app/lib/ui/proj.js +++ b/app/lib/ui/proj.js @@ -93,13 +93,11 @@ proj.end = function (c, id, ms) { } gui.counterUpdate('proj', proj.pos) if (typeof proj.queue[id] !== 'undefined') { + proj.lock = false; if (typeof proj.queue[id].callback !== 'undefined') { proj.queue[id].callback(ms); - } else { - log.info('NO PROJ CALLBACK') } delete proj.queue[id]; - proj.lock = false; } }; proj.listen = function () { diff --git a/app/package-lock.json b/app/package-lock.json index d0e2dff..7ae15a2 100644 --- a/app/package-lock.json +++ b/app/package-lock.json @@ -1,6 +1,6 @@ { "name": "mcopy-app", - "version": "1.8.152", + "version": "1.8.153", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/app/package.json b/app/package.json index 4773df8..5ecb945 100644 --- a/app/package.json +++ b/app/package.json @@ -1,6 +1,6 @@ { "name": "mcopy-app", - "version": "1.8.152", + "version": "1.8.153", "description": "GUI for the mcopy small gauge film optical printer platform", "main": "main.js", "scripts": { diff --git a/data/cfg.json b/data/cfg.json index 323a7bc..b8eca91 100644 --- a/data/cfg.json +++ b/data/cfg.json @@ -1,5 +1,5 @@ { - "version": "1.8.152", + "version": "1.8.153", "ext_port": 1111, "profiles": { "mcopy": { diff --git a/package-lock.json b/package-lock.json index 1c9c63f..6cd14dc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "mcopy", - "version": "1.8.152", + "version": "1.8.153", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "mcopy", - "version": "1.8.152", + "version": "1.8.153", "license": "MIT", "dependencies": { "alert": "file:app/lib/alert", diff --git a/package.json b/package.json index b1223c4..27ec6c6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mcopy", - "version": "1.8.152", + "version": "1.8.153", "description": "Small gauge film optical printer platform", "main": "build.js", "directories": { diff --git a/processing/mcopy/cfg.json b/processing/mcopy/cfg.json index 323a7bc..b8eca91 100644 --- a/processing/mcopy/cfg.json +++ b/processing/mcopy/cfg.json @@ -1,5 +1,5 @@ { - "version": "1.8.152", + "version": "1.8.153", "ext_port": 1111, "profiles": { "mcopy": {