1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-11-22 23:56:13 +01:00

Brake fix

This commit is contained in:
Asbelos 2022-03-31 10:03:27 +01:00
parent ef50665c16
commit 7dd680ccd5
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@ -16,3 +16,4 @@ myFilter.cpp
myAutomation.h
myFilter.cpp
myLayout.h
.vscode/extensions.json

View File

@ -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;