diff --git a/app/data/cfg.json b/app/data/cfg.json index 9bc806c..0ca4c93 100644 --- a/app/data/cfg.json +++ b/app/data/cfg.json @@ -1,5 +1,5 @@ { - "version": "1.8.96", + "version": "1.8.97", "ext_port": 1111, "profiles": { "mcopy": { diff --git a/app/lib/ui/devices.js b/app/lib/ui/devices.js index 3420f01..917b009 100644 --- a/app/lib/ui/devices.js +++ b/app/lib/ui/devices.js @@ -28,8 +28,7 @@ class Devices { } ready(event, arg) { return __awaiter(this, void 0, void 0, function* () { - console.log("Got to ready"); - console.dir(arg); + log.info("Devices ready"); let opt; let devs = []; let notify = 'Connected to '; @@ -101,6 +100,7 @@ class Devices { catch (err) { log.error(err); } + log.info("Got here"); return event.returnValue = true; }); } diff --git a/app/lib/ui/devices.js.map b/app/lib/ui/devices.js.map index cb558a0..3f9525d 100644 --- a/app/lib/ui/devices.js.map +++ b/app/lib/ui/devices.js.map @@ -1 +1 @@ -{"version":3,"file":"devices.js","sourceRoot":"","sources":["../../src/lib/ui/devices.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;;;;;;;AAEb,qCAAqC;AAErC,IAAI,OAAiB,CAAC;AAEtB,MAAM,OAAO;IAEZ;QADQ,OAAE,GAAY,SAAS,CAAC;IAGhC,CAAC;IACD,IAAI;QACH,IAAI,CAAC,MAAM,EAAE,CAAC;QACd,IAAI,CAAC,QAAQ,EAAE,CAAC;QAChB,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAClB,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,mCAAmC,CAAC,CAAC;IACxD,CAAC;IACD,MAAM;QACL,WAAW,CAAC,EAAE,CAAC,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;QAC/C,WAAW,CAAC,EAAE,CAAC,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;QACnD,WAAW,CAAC,EAAE,CAAC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B,MAAM,CAAC,OAAO,GAAG,OAAO,CAAC"} \ No newline at end of file diff --git a/app/package-lock.json b/app/package-lock.json index 07ab0a0..05f5d0f 100644 --- a/app/package-lock.json +++ b/app/package-lock.json @@ -1,6 +1,6 @@ { "name": "mcopy-app", - "version": "1.8.96", + "version": "1.8.97", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/app/package.json b/app/package.json index 7bda8f6..34d5559 100644 --- a/app/package.json +++ b/app/package.json @@ -1,6 +1,6 @@ { "name": "mcopy-app", - "version": "1.8.96", + "version": "1.8.97", "description": "GUI for the mcopy small gauge film optical printer platform", "main": "main.js", "scripts": { diff --git a/app/src/lib/ui/devices.ts b/app/src/lib/ui/devices.ts index 85c124b..3d26860 100644 --- a/app/src/lib/ui/devices.ts +++ b/app/src/lib/ui/devices.ts @@ -23,8 +23,7 @@ class Devices { } async ready (event : any, arg : any) { - console.log("Got to ready"); - console.dir(arg) + log.info("Devices ready"); let opt : any; let devs : any[] = []; let notify : string = 'Connected to '; @@ -39,9 +38,9 @@ class Devices { devs.push(arg[i].arduino); if (arg[i].arduino && arg[i].arduino !== '/dev/fake') { if (notify === 'Connected to ') { - notify += arg[i].arduino + ' ' + notify += arg[i].arduino + ' '; } else { - notify += `& ${arg[i].arduino}` + notify += `& ${arg[i].arduino}`; } } opt = $('