More missing variable passings

This commit is contained in:
Skylar Grant 2022-12-03 20:28:04 -05:00
parent c2226d1c6f
commit cc15dbd64b

View File

@ -42,12 +42,12 @@ async function main(fn, gpio) {
switch (res) { switch (res) {
case "pause": case "pause":
fn.commands.pause().then(() => { fn.commands.pause().then(() => {
main(fn); main(fn, gpio);
}); });
break; break;
case "reload": case "reload":
fn.commands.reload().then(() => { fn.commands.reload().then(() => {
main(fn); main(fn, gpio);
}); });
break; break;
case "quit": case "quit":
@ -56,12 +56,12 @@ async function main(fn, gpio) {
case "none": case "none":
fn.auger.cycle(gpio).then((res) => { fn.auger.cycle(gpio).then((res) => {
if (process.env.DEBUG == 'true') console.log(res); if (process.env.DEBUG == 'true') console.log(res);
main(fn); main(fn, gpio);
}); });
break; break;
default: default:
main(fn); main(fn, gpio);
break; break;
} }
}); });