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:
parent
7fc5c48efa
commit
c9195f8035
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user