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) {
|
for (let x of job.amounts) {
|
||||||
// Start pump here
|
// Start pump here
|
||||||
try {
|
try {
|
||||||
|
console.log(x.container);
|
||||||
|
console.log("x1");
|
||||||
await GPIO.setup(x.container.pumpPin, GPIO.DIR_OUT);
|
await GPIO.setup(x.container.pumpPin, GPIO.DIR_OUT);
|
||||||
|
console.log("x2");
|
||||||
await GPIO.write(x.container.pumpPin, true);
|
await GPIO.write(x.container.pumpPin, true);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (isPI()) {
|
if (isPI()) {
|
||||||
|
@ -57,9 +57,9 @@ const wsApp = new WebsocketApp();
|
|||||||
})();
|
})();
|
||||||
|
|
||||||
function init(): Promise<void> {
|
function init(): Promise<void> {
|
||||||
log("Initializing...");
|
|
||||||
return new Promise(async resolve => {
|
|
||||||
|
|
||||||
|
return new Promise(async resolve => {
|
||||||
|
log("Initializing...");
|
||||||
setTimeout( async () => {
|
setTimeout( async () => {
|
||||||
// Network
|
// Network
|
||||||
await iTender.checkNetwork();
|
await iTender.checkNetwork();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user