mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-12-23 12:51:24 +01:00
Brake fix
This commit is contained in:
parent
ef50665c16
commit
7dd680ccd5
1
.gitignore
vendored
1
.gitignore
vendored
@ -16,3 +16,4 @@ myFilter.cpp
|
||||
myAutomation.h
|
||||
myFilter.cpp
|
||||
myLayout.h
|
||||
.vscode/extensions.json
|
||||
|
@ -56,7 +56,7 @@ MotorDriver::MotorDriver(VPIN power_pin, byte signal_pin, byte signal_pin2, int8
|
||||
brakePin=invertBrake ? 0-brake_pin : brake_pin;
|
||||
getFastPin(F("BRAKE"),brakePin,fastBrakePin);
|
||||
pinMode(brakePin, OUTPUT);
|
||||
setBrake(false);
|
||||
setBrake(true); // start with brake on in case we hace DC stuff going on
|
||||
}
|
||||
else brakePin=UNUSED_PIN;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user