From 27cc6bafe5e68724f273d97827bad0b36dc64de3 Mon Sep 17 00:00:00 2001 From: Skylar Grant Date: Sun, 18 Aug 2024 13:49:41 -0400 Subject: [PATCH] Add more detailed logging --- src/custom_modules/VoidGPIO.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/custom_modules/VoidGPIO.js b/src/custom_modules/VoidGPIO.js index 44deb2c..5920ded 100644 --- a/src/custom_modules/VoidGPIO.js +++ b/src/custom_modules/VoidGPIO.js @@ -75,7 +75,7 @@ module.exports = { }) }, // Boot up sanity check during debug mode - debugInit() { + async debugInit() { console.log('Resetting all output pins.'); pins.forEach(async (pin) => { if (pin.mode === 'OUT') { @@ -90,11 +90,13 @@ module.exports = { case 'OUT': this.togglePin(pin.board, err => { if (err) throw err; + console.log(`Toggled ${pin.key}`); }); // Wait 1000ms before toggling again. await sleep(1000); this.togglePin(pin.board, err => { if (err) throw err; + console.log(`Toggled ${pin.key}`); }); break; case 'IN':