Launch control pull resistor implementation.

This commit is contained in:
ConnerMcLaughlin 2016-09-26 12:01:52 -05:00 committed by GitHub
parent 83347aabf6
commit 621e963c9a
1 changed files with 3 additions and 3 deletions

View File

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