Move away from forEach loop

This commit is contained in:
Skylar Grant 2024-08-18 13:53:55 -04:00
parent 1932913396
commit 486c3aaa62

View File

@ -86,7 +86,7 @@ module.exports = {
}); });
}; };
}); });
pins.forEach(async (pin) => { for (const pin of pins) {
switch (pin.mode) { switch (pin.mode) {
case 'OUT': case 'OUT':
this.togglePin(pin.board, err => { this.togglePin(pin.board, err => {
@ -108,6 +108,6 @@ module.exports = {
default: default:
break; break;
} }
}); };
} }
} }