Move Serial begin statements until after config is loaded
This commit is contained in:
parent
dd92c40af4
commit
76b6e26aca
|
@ -131,10 +131,6 @@ volatile bool fpPrimed = false; //Tracks whether or not the fuel pump priming ha
|
|||
|
||||
void setup()
|
||||
{
|
||||
Serial.begin(115200);
|
||||
#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__) //ATmega2561 does not have Serial3
|
||||
if (configPage1.canEnable) { Serial3.begin(115200); }
|
||||
#endif
|
||||
|
||||
//Setup the dummy fuel and ignition tables
|
||||
//dummyFuelTable(&fuelTable);
|
||||
|
@ -151,6 +147,11 @@ void setup()
|
|||
|
||||
loadConfig();
|
||||
|
||||
Serial.begin(115200);
|
||||
#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__) //ATmega2561 does not have Serial3
|
||||
if (configPage1.canEnable) { Serial3.begin(115200); }
|
||||
#endif
|
||||
|
||||
//Repoint the 2D table structs to the config pages that were just loaded
|
||||
taeTable.valueSize = SIZE_BYTE; //Set this table to use byte values
|
||||
taeTable.xSize = 4;
|
||||
|
|
|
@ -371,6 +371,8 @@ void setPinMapping(byte boardID)
|
|||
pinMode(pinFan, OUTPUT);
|
||||
pinMode(pinStepperDir, OUTPUT);
|
||||
pinMode(pinStepperStep, OUTPUT);
|
||||
pinMode(pinBoost, OUTPUT);
|
||||
pinMode(pinVVT_1, OUTPUT);
|
||||
|
||||
inj1_pin_port = portOutputRegister(digitalPinToPort(pinInjector1));
|
||||
inj1_pin_mask = digitalPinToBitMask(pinInjector1);
|
||||
|
|
Loading…
Reference in New Issue