diff --git a/src/kiri-dev/cam/ShopBot.Basic b/src/kiri-dev/cam/ShopBot.Basic index fe8601a9..2480e745 100644 --- a/src/kiri-dev/cam/ShopBot.Basic +++ b/src/kiri-dev/cam/ShopBot.Basic @@ -10,11 +10,10 @@ "gcodePre": [ "'UNITS:MM", "'", - " \t'Set program to absolute coordinate mode", - "CN, 90", - "&Tool =1 'Tool number to change to", + "CN, 90 'Set program to absolute coordinate mode", + "&Tool =1 'Tool number to change to", "C9 'Change tool", - "TR,4000 'Set spindle RPM", + "TR,4000 'Set spindle RPM", "C6 'Spindle on", "PAUSE 2", "'" @@ -24,9 +23,8 @@ "C7", "END", "'", - "'", "UNIT_ERROR:", - "CN, 91 'Run file explaining unit error", + "CN, 91 'Run file explaining unit error", "END" ], "gcodeDwell": [ diff --git a/src/kiri/devices.js b/src/kiri/devices.js index 22c76421..ccbc4bbc 100644 --- a/src/kiri/devices.js +++ b/src/kiri/devices.js @@ -79,7 +79,7 @@ gapp.register("kiri.devices", (root, exports) => { function removeLocalDevice(devicename) { delete api.conf.get().devices[devicename]; api.conf.save(); - sync_put(); + api.settings.sync.put(); } function isLocalDevice(devicename) { @@ -113,7 +113,7 @@ gapp.register("kiri.devices", (root, exports) => { } putLocalDevice(name, code); setDeviceCode(code, name); - sync_put(); + api.settings.sync.put(); } function updateLaserState() {