This commit is contained in:
Skylar Grant 2024-08-18 13:18:54 -04:00
parent 582c05cdc3
commit 3f6f9c3e73

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(() => {
if (err) throw err; this.togglePin(pin.board, err => {
}), 1000); if (err) throw err;
});
}, 1000);
break; break;
case 'IN': case 'IN':
this.sensePin(pin.board, (state, err) => { this.sensePin(pin.board, (state, err) => {