Forgot to loop
This commit is contained in:
parent
8d947e5ffa
commit
55f0466ead
3
main.js
3
main.js
@ -76,6 +76,7 @@ async function main(fn, gpio) {
|
|||||||
// Start the igniter and timer
|
// Start the igniter and timer
|
||||||
fn.commands.ignite(gpio).then(res => {
|
fn.commands.ignite(gpio).then(res => {
|
||||||
if (config.debugMode) console.log(res);
|
if (config.debugMode) console.log(res);
|
||||||
|
statusCheck(fn, gpio);
|
||||||
}).catch(rej => {
|
}).catch(rej => {
|
||||||
console.error(`[${(Date.now() - config.startTime)/1000}] E: ${rej}`);
|
console.error(`[${(Date.now() - config.startTime)/1000}] E: ${rej}`);
|
||||||
fn.commands.shutdown(gpio).then(res => {
|
fn.commands.shutdown(gpio).then(res => {
|
||||||
@ -91,7 +92,7 @@ async function main(fn, gpio) {
|
|||||||
fn.commands.startup(gpio).then(res => {
|
fn.commands.startup(gpio).then(res => {
|
||||||
statusCheck(fn, gpio);
|
statusCheck(fn, gpio);
|
||||||
}).catch(rej => {
|
}).catch(rej => {
|
||||||
|
// TODO
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
case "none":
|
case "none":
|
||||||
|
Loading…
Reference in New Issue
Block a user