add adm server struct

This commit is contained in:
Stewart Allen 2020-04-20 09:41:54 -04:00
commit 73271daf0a
2 changed files with 3 additions and 1 deletions

View file

@ -1062,6 +1062,9 @@ function initModule(file, dir) {
helper.log({module:file}); helper.log({module:file});
require(file)({ require(file)({
api: api, api: api,
adm: {
reload: prepareScripts
},
const: { const: {
args: args, args: args,
debug: debug, debug: debug,

View file

@ -6,7 +6,6 @@
"M83 ; set relative positioning for extruder", "M83 ; set relative positioning for extruder",
"M107 ; turn off filament cooling fan", "M107 ; turn off filament cooling fan",
"G28 ; home axes", "G28 ; home axes",
"G29 ; level bed",
"G92 X0 Y0 Z0 E0 ; reset all axes positions", "G92 X0 Y0 Z0 E0 ; reset all axes positions",
"G1 X0 Y0 Z0.25 F180 ; move xy to 0,0 and z 0.25mm over bed", "G1 X0 Y0 Z0.25 F180 ; move xy to 0,0 and z 0.25mm over bed",
"G92 E0 ; zero the extruded", "G92 E0 ; zero the extruded",