diff --git a/src/custom_modules/VoidGPIO.js b/src/custom_modules/VoidGPIO.js index b1ae3c0..ded7ef5 100644 --- a/src/custom_modules/VoidGPIO.js +++ b/src/custom_modules/VoidGPIO.js @@ -86,7 +86,7 @@ module.exports = { }); }; }); - pins.forEach(async (pin) => { + for (const pin of pins) { switch (pin.mode) { case 'OUT': this.togglePin(pin.board, err => { @@ -108,6 +108,6 @@ module.exports = { default: break; } - }); + }; } } \ No newline at end of file