Took 5 minutes
This commit is contained in:
Tobias Hopp 2022-11-28 11:42:33 +01:00
parent 925facd3f3
commit c770c5cce8
2 changed files with 5 additions and 2 deletions

View File

@ -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()) {

View File

@ -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();