This commit is contained in:
Skylar Grant 2024-08-18 13:18:54 -04:00
parent 582c05cdc3
commit 3f6f9c3e73
1 changed files with 5 additions and 3 deletions

View File

@ -50,9 +50,11 @@ module.exports = {
if (err) throw err; if (err) throw err;
}); });
// Wait 1000ms before toggling again. // Wait 1000ms before toggling again.
setTimeout(this.togglePin(pin.board, err => { setTimeout(() => {
this.togglePin(pin.board, err => {
if (err) throw err; if (err) throw err;
}), 1000); });
}, 1000);
break; break;
case 'IN': case 'IN':
this.sensePin(pin.board, (state, err) => { this.sensePin(pin.board, (state, err) => {