main: use NUM_MOTORS everywhere

This commit is contained in:
Peter Cai 2021-06-10 18:45:51 +08:00
parent 8e1b13345a
commit 7d2f555ee4
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ int main() {
digitalWrite(8, LOW);
// Initialize the controllers
for (int i = 0; i < 4; i++) {
for (int i = 0; i < NUM_MOTORS; i++) {
motors[i].Init();
}