fix sync_put, neaten shopbot

This commit is contained in:
Stewart Allen 2024-09-25 17:02:10 -04:00
commit 2726288d7e
2 changed files with 6 additions and 8 deletions

View file

@ -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": [

View file

@ -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() {