1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2025-03-14 18:13:09 +01:00

invert Railcom pulse if brake is inverted

This commit is contained in:
Harald Barth 2022-05-15 01:44:37 +02:00
parent 7fc5c48efa
commit c9195f8035

View File

@ -115,7 +115,7 @@ void MotorDriver::setBrake(bool on) {
} }
void MotorDriver::setRailcomCutout(bool on) { void MotorDriver::setRailcomCutout(bool on) {
DCCTimer::setPWM(brakePin,on); DCCTimer::setPWM(brakePin,on ^ invertBrake);
} }
void MotorDriver::setSignal( bool high) { void MotorDriver::setSignal( bool high) {