From a7b69f99d09eff8391055bf7735a41c1f7a0930d Mon Sep 17 00:00:00 2001 From: Oleg Kalachev Date: Sun, 24 Nov 2024 00:17:47 +0300 Subject: [PATCH] Fix non-working motor control commands --- flix/cli.ino | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/flix/cli.ino b/flix/cli.ino index 9ceb3a2..0bcfbb8 100644 --- a/flix/cli.ino +++ b/flix/cli.ino @@ -132,8 +132,9 @@ void showTable() { void cliTestMotor(uint8_t n) { Serial.printf("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 sendMotors(); - delay(5000); + delay(3000); motors[n] = 0; sendMotors(); Serial.println("Done");