3.3
This commit is contained in:
parent
582c05cdc3
commit
3f6f9c3e73
@ -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) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user