Make sure the board inits do no take place until after the config is loaded from EEPROM
This commit is contained in:
parent
1bd7d9dcc4
commit
ce8502c7e2
|
@ -17,7 +17,6 @@
|
|||
|
||||
void initialiseAll()
|
||||
{
|
||||
initBoard(); //This calls the current individual boards init function. See the board_xxx.ino files for these.
|
||||
pinMode(LED_BUILTIN, OUTPUT);
|
||||
digitalWrite(LED_BUILTIN, LOW);
|
||||
table3D_setSize(&fuelTable, 16);
|
||||
|
@ -30,7 +29,6 @@ void initialiseAll()
|
|||
table3D_setSize(&trim2Table, 6);
|
||||
table3D_setSize(&trim3Table, 6);
|
||||
table3D_setSize(&trim4Table, 6);
|
||||
initialiseTimers();
|
||||
|
||||
loadConfig();
|
||||
doUpdates(); //Check if any data items need updating (Occurs with firmware updates)
|
||||
|
@ -39,6 +37,9 @@ void initialiseAll()
|
|||
//This should be 0 until we hear otherwise from the 16u2
|
||||
configPage4.bootloaderCaps = 0;
|
||||
|
||||
initBoard(); //This calls the current individual boards init function. See the board_xxx.ino files for these.
|
||||
initialiseTimers();
|
||||
|
||||
Serial.begin(115200);
|
||||
if (configPage9.enable_secondarySerial == 1) { CANSerial.begin(115200); }
|
||||
|
||||
|
|
|
@ -23,7 +23,6 @@ Timers are typically low resolution (Compared to Schedulers), with maximum frequ
|
|||
|
||||
void initialiseTimers()
|
||||
{
|
||||
|
||||
lastRPM_100ms = 0;
|
||||
loop33ms = 0;
|
||||
loop66ms = 0;
|
||||
|
|
Loading…
Reference in New Issue