Clutch switch inverted options do not invert detected pedal position

#3044
This commit is contained in:
Andrey 2021-07-24 18:59:00 -04:00
parent 37247db383
commit eaeade5305
2 changed files with 4 additions and 9 deletions

View File

@ -729,8 +729,8 @@ void startPedalPins(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
} }
void stopPedalPins(DECLARE_ENGINE_PARAMETER_SIGNATURE) { void stopPedalPins(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
brain_pin_markUsed(activeConfiguration.clutchUpPin, "clutch" PASS_ENGINE_PARAMETER_SUFFIX); brain_pin_markUnused(activeConfiguration.clutchUpPin PASS_ENGINE_PARAMETER_SUFFIX);
brain_pin_markUsed(activeConfiguration.clutchDownPin, "clutch" PASS_ENGINE_PARAMETER_SUFFIX); brain_pin_markUnused(activeConfiguration.clutchDownPin PASS_ENGINE_PARAMETER_SUFFIX);
brain_pin_markUsed(activeConfiguration.throttlePedalUpPin, "th_pedal" PASS_ENGINE_PARAMETER_SUFFIX); brain_pin_markUnused(activeConfiguration.throttlePedalUpPin PASS_ENGINE_PARAMETER_SUFFIX);
brain_pin_markUsed(activeConfiguration.brakePedalPin, "brake" PASS_ENGINE_PARAMETER_SUFFIX); brain_pin_markUnused(activeConfiguration.brakePedalPin PASS_ENGINE_PARAMETER_SUFFIX);
} }

View File

@ -489,11 +489,6 @@ enable2ndByteCanID = false
requiresPowerCycle = binarySerialTxPin requiresPowerCycle = binarySerialTxPin
requiresPowerCycle = binarySerialRxPin requiresPowerCycle = binarySerialRxPin
requiresPowerCycle = clutchUpPin
requiresPowerCycle = clutchUpPinMode
requiresPowerCycle = clutchDownPin
requiresPowerCycle = clutchDownPinMode
requiresPowerCycle = etb_use_two_wires requiresPowerCycle = etb_use_two_wires
requiresPowerCycle = etbFreq requiresPowerCycle = etbFreq