From 57f2a08e2620f4dac674edb7632466a5272ad93d Mon Sep 17 00:00:00 2001 From: ConnerMcLaughlin Date: Sun, 25 Sep 2016 13:32:12 -0500 Subject: [PATCH] Added support for both NO and NC clutch switch on launch In many car designs a NC clutch switch acts as NO switch because the pressure plate is forcing the switch open when clutch is released and vise versa for a NO clutch switch. But in almost all designs I've seen they are always grounding. A hot switching option may be added later for exceptions to that design standard. --- utils.ino | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/utils.ino b/utils.ino index ed08fbef..1221b78c 100644 --- a/utils.ino +++ b/utils.ino @@ -362,8 +362,9 @@ void setPinMapping(byte boardID) pinMode(pinTrigger2, INPUT); pinMode(pinTrigger3, INPUT); pinMode(pinFlex, INPUT_PULLUP); //Standard GM / Continental flex sensor requires pullup - if (configPage3.launchHiLo) { pinMode(pinLaunch, INPUT); } - else { pinMode(pinLaunch, INPUT_PULLUP); } //If launch triggers on LOW signal, then set a pull up as the default + pinMode(pinLaunch, INPUT_PULLUP); //This should work for both NO and NC grounding switches +// if (configPage3.launchHiLo) { pinMode(pinLaunch, INPUT); } +// else { pinMode(pinLaunch, INPUT_PULLUP); } //If launch triggers on LOW signal, then set a pull up as the default //Set default values digitalWrite(pinMAP, HIGH);