diff --git a/src/iTender.ts b/src/iTender.ts index 210515d..6ef0d5c 100644 --- a/src/iTender.ts +++ b/src/iTender.ts @@ -144,7 +144,10 @@ export class iTender { for (let x of job.amounts) { // Start pump here try { + console.log(x.container); + console.log("x1"); await GPIO.setup(x.container.pumpPin, GPIO.DIR_OUT); + console.log("x2"); await GPIO.write(x.container.pumpPin, true); } catch (e) { if (isPI()) { diff --git a/src/main.ts b/src/main.ts index 28c6836..61944ef 100644 --- a/src/main.ts +++ b/src/main.ts @@ -57,9 +57,9 @@ const wsApp = new WebsocketApp(); })(); function init(): Promise { - log("Initializing..."); - return new Promise(async resolve => { + return new Promise(async resolve => { + log("Initializing..."); setTimeout( async () => { // Network await iTender.checkNetwork();