Move away from forEach loop
This commit is contained in:
parent
1932913396
commit
486c3aaa62
@ -86,7 +86,7 @@ module.exports = {
|
||||
});
|
||||
};
|
||||
});
|
||||
pins.forEach(async (pin) => {
|
||||
for (const pin of pins) {
|
||||
switch (pin.mode) {
|
||||
case 'OUT':
|
||||
this.togglePin(pin.board, err => {
|
||||
@ -108,6 +108,6 @@ module.exports = {
|
||||
default:
|
||||
break;
|
||||
}
|
||||
});
|
||||
};
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user