Move away from forEach loop

This commit is contained in:
Skylar Grant 2024-08-18 13:53:55 -04:00
parent 1932913396
commit 486c3aaa62
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}
});
};
}
}