[all] Throttle Trace resetted when changing Model

[sky9x] Background music stopped when changing Model
This commit is contained in:
bsongis
2012-10-04 19:24:16 +00:00
parent 2b78b499f4
commit b4b00ecddc
9 changed files with 33 additions and 19 deletions
+2 -1
View File
@@ -498,6 +498,8 @@ 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) ;
}
resetAll();
if (pulsesStarted()) {
checkTHR();
checkSwitches();
@@ -509,7 +511,6 @@ void eeLoadModel(uint8_t id)
activeFunctionSwitches = 0;
resetProto();
resetAll();
for (uint8_t i=0; i<MAX_TIMERS; i++) {
if (g_model.timersXtra[i].remanent) {