From 7dd680ccd5704982351a53d33e60ee31a8a47084 Mon Sep 17 00:00:00 2001 From: Asbelos Date: Thu, 31 Mar 2022 10:03:27 +0100 Subject: [PATCH] Brake fix --- .gitignore | 1 + MotorDriver.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 2bf0b5e..5e5d355 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,4 @@ myFilter.cpp myAutomation.h myFilter.cpp myLayout.h +.vscode/extensions.json diff --git a/MotorDriver.cpp b/MotorDriver.cpp index 0967ec5..ecad826 100644 --- a/MotorDriver.cpp +++ b/MotorDriver.cpp @@ -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;