mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-11-22 23:56:13 +01:00
invert Railcom pulse if brake is inverted
This commit is contained in:
parent
7fc5c48efa
commit
c9195f8035
|
@ -115,7 +115,7 @@ void MotorDriver::setBrake(bool on) {
|
|||
}
|
||||
|
||||
void MotorDriver::setRailcomCutout(bool on) {
|
||||
DCCTimer::setPWM(brakePin,on);
|
||||
DCCTimer::setPWM(brakePin,on ^ invertBrake);
|
||||
}
|
||||
|
||||
void MotorDriver::setSignal( bool high) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user