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