diff --git a/src/custom_modules/VoidGPIO.js b/src/custom_modules/VoidGPIO.js index ec8c5c0..c8b2b19 100644 --- a/src/custom_modules/VoidGPIO.js +++ b/src/custom_modules/VoidGPIO.js @@ -50,7 +50,7 @@ module.exports = { if (err) throw err; }); // Wait 1000ms before toggling again. - setTimeout(() => { + await setTimeout(() => { this.togglePin(pin.board, err => { if (err) throw err; });