Switch and Throttle Warnings when loading a model. To be tested and re-tested ...
This commit is contained in:
+12
-1
@@ -471,6 +471,10 @@ void eeLoadModel(uint8_t id)
|
||||
|
||||
if (id<MAX_MODELS) {
|
||||
|
||||
if (pulsesStarted()) {
|
||||
pausePulses();
|
||||
}
|
||||
|
||||
size = File_system[id+1].size ;
|
||||
|
||||
memset(&g_model, 0, sizeof(g_model));
|
||||
@@ -493,10 +497,17 @@ void eeLoadModel(uint8_t id)
|
||||
read32_eeprom_data( ( File_system[id+1].block_no << 12) + sizeof( struct t_eeprom_header), ( uint8_t *)&g_model, size) ;
|
||||
}
|
||||
|
||||
if (pulsesStarted()) {
|
||||
checkTHR();
|
||||
checkSwitches();
|
||||
resumePulses();
|
||||
clearKeyEvents();
|
||||
}
|
||||
|
||||
resetProto();
|
||||
resetAll();
|
||||
|
||||
#if defined(SDCARD) && defined(PCBV4)
|
||||
#if 0
|
||||
initLogs();
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user