Minor fixes and updates

This commit is contained in:
Oleg Kalachev
2026-06-30 12:19:29 +03:00
parent 9d439afd80
commit 26a0dd65be
4 changed files with 11 additions and 4 deletions
+1 -2
View File
@@ -17,7 +17,7 @@ int pwmMax = -1; // -1 means duty cycle mode
const int MOTOR_REAR_LEFT = 0, MOTOR_REAR_RIGHT = 1, MOTOR_FRONT_RIGHT = 2, MOTOR_FRONT_LEFT = 3;
void setupMotors() {
print("Setup Motors\n");
print("Setup motors\n");
// Configure pins
for (int i = 0; i < 4; i++) {
if (motorPins[i] < 0) continue; // skip unassigned motors
@@ -25,7 +25,6 @@ void setupMotors() {
pwmFrequency = ledcChangeFrequency(motorPins[i], pwmFrequency, pwmResolution); // when reconfiguring
}
sendMotors();
print("Motors initialized\n");
}
void sendMotors() {