[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
+8 -2
View File
@@ -1557,14 +1557,20 @@ void resetTimer(uint8_t idx)
void resetAll()
{
// TODO s_traceCnt to be reset?
AUDIO_RESET();
resetTimer(0);
resetTimer(1);
#ifdef FRSKY
#if defined(FRSKY)
resetTelemetry();
#endif
for (uint8_t i=0; i<NUM_CSW; i++)
csLastValue[i] = -32668;
#if defined(THRTRACE)
s_traceCnt = 0;
s_traceWr = 0;
#endif
}
static uint8_t lastSwPos[2] = {0, 0};