Switch and Throttle Warnings when loading a model. To be tested and re-tested ...

This commit is contained in:
bsongis
2012-05-25 13:52:39 +00:00
parent d3b14ea3e2
commit 9ef47a1e63
11 changed files with 112 additions and 67 deletions
+12 -1
View File
@@ -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
}