From deec8b7e8c69a3a62858d9d54ce31c51a236515b Mon Sep 17 00:00:00 2001 From: Harald Barth Date: Sat, 25 Jul 2020 18:49:37 +0200 Subject: [PATCH] Reverse setBrake() --- Hardware.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Hardware.cpp b/Hardware.cpp index 91e475d..bf11d45 100644 --- a/Hardware.cpp +++ b/Hardware.cpp @@ -54,7 +54,7 @@ void Hardware::setPower(bool isMainTrack, bool on) { WritePin(isMainTrack ? MAIN_POWER_PIN : PROG_POWER_PIN, on ? HIGH : LOW); } 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) {