mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-12-24 13:21:23 +01:00
Reverse setBrake()
This commit is contained in:
parent
ed332efd2e
commit
deec8b7e8c
@ -54,7 +54,7 @@ void Hardware::setPower(bool isMainTrack, bool on) {
|
|||||||
WritePin(isMainTrack ? MAIN_POWER_PIN : PROG_POWER_PIN, on ? HIGH : LOW);
|
WritePin(isMainTrack ? MAIN_POWER_PIN : PROG_POWER_PIN, on ? HIGH : LOW);
|
||||||
}
|
}
|
||||||
void Hardware::setBrake(bool isMainTrack, bool on) {
|
void Hardware::setBrake(bool isMainTrack, bool on) {
|
||||||
WritePin(isMainTrack ? MAIN_BRAKE_PIN : PROG_BRAKE_PIN, on ? LOW:HIGH);
|
WritePin(isMainTrack ? MAIN_BRAKE_PIN : PROG_BRAKE_PIN, on ? HIGH : LOW);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Hardware::setSignal(bool isMainTrack, bool high) {
|
void Hardware::setSignal(bool isMainTrack, bool high) {
|
||||||
|
Loading…
Reference in New Issue
Block a user