From 621e963c9a6b438cf3dd5e8bece9c3bd6d2b0adc Mon Sep 17 00:00:00 2001 From: ConnerMcLaughlin Date: Mon, 26 Sep 2016 12:01:52 -0500 Subject: [PATCH] Launch control pull resistor implementation. --- utils.ino | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/utils.ino b/utils.ino index 1221b78c..b0c07fca 100644 --- a/utils.ino +++ b/utils.ino @@ -362,9 +362,9 @@ void setPinMapping(byte boardID) pinMode(pinTrigger2, INPUT); pinMode(pinTrigger3, INPUT); pinMode(pinFlex, INPUT_PULLUP); //Standard GM / Continental flex sensor requires pullup - 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 +// pinMode(pinLaunch, INPUT_PULLUP); //This should work for both NO and NC grounding switches + if (configPage3.lnchPullRes) { pinMode(pinLaunch, INPUT_PULLUP); } + else { pinMode(pinLaunch, INPUT); } //If Launch Pull Resistor is not set make input float. //Set default values digitalWrite(pinMAP, HIGH);