mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2025-07-28 18:03:45 +02:00
ESP32 rewrite PWM LEDC inrush duty fix
This commit is contained in:
@@ -411,7 +411,7 @@ void MotorDriver::throttleInrush(bool on) {
|
||||
duty = 255-duty;
|
||||
#if defined(ARDUINO_ARCH_ESP32)
|
||||
if(on) {
|
||||
DCCTimer::DCCEXInrushControlOn(brakePin);
|
||||
DCCTimer::DCCEXInrushControlOn(brakePin, duty);
|
||||
} else {
|
||||
ledcDetachPin(brakePin); // not DCCTimer::DCCEXledcDetachPin() as we have not
|
||||
// registered the pin in the pin to channel array
|
||||
|
Reference in New Issue
Block a user