From 7d2f555ee4c7e633843a1b764974160eb0d127c5 Mon Sep 17 00:00:00 2001 From: Peter Cai Date: Thu, 10 Jun 2021 18:45:51 +0800 Subject: [PATCH] main: use NUM_MOTORS everywhere --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index d896d2f..e7abf25 100644 --- a/main.cpp +++ b/main.cpp @@ -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(); }