Minor code updates

This commit is contained in:
Oleg Kalachev
2025-05-15 09:22:17 +03:00
parent 7e5a75a01f
commit 9c8c0e2578
4 changed files with 4 additions and 4 deletions

View File

@@ -55,7 +55,7 @@ bool motorsActive() {
return motors[0] != 0 || motors[1] != 0 || motors[2] != 0 || motors[3] != 0;
}
void testMotor(uint8_t n) {
void testMotor(int n) {
print("Testing motor %d\n", n);
motors[n] = 1;
delay(50); // ESP32 may need to wait until the end of the current cycle to change duty https://github.com/espressif/arduino-esp32/issues/5306