try fix
Took 5 minutes
This commit is contained in:
parent
925facd3f3
commit
c770c5cce8
@ -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()) {
|
||||
|
@ -57,9 +57,9 @@ const wsApp = new WebsocketApp();
|
||||
})();
|
||||
|
||||
function init(): Promise<void> {
|
||||
log("Initializing...");
|
||||
return new Promise(async resolve => {
|
||||
|
||||
return new Promise(async resolve => {
|
||||
log("Initializing...");
|
||||
setTimeout( async () => {
|
||||
// Network
|
||||
await iTender.checkNetwork();
|
||||
|
Loading…
x
Reference in New Issue
Block a user