PXX updates + optimizations pulled from er9x

FrSky TELEMETRY menu is now moved to [DOWN long]
Function added to reach the TELEMETRY screen when a switch is enabled
Main view optimizations
This commit is contained in:
bsongis
2012-02-23 18:09:27 +00:00
parent 0a1b7a39bf
commit 4200c203b6
16 changed files with 387 additions and 370 deletions
+12
View File
@@ -65,6 +65,8 @@ uint8_t heartbeat;
int8_t safetyCh[NUM_CHNOUT];
union ReusableBuffer reusableBuffer;
const pm_char s_charTab[] PROGMEM = "_-.,";
const pm_uint8_t bchout_ar[] PROGMEM = {
@@ -928,6 +930,16 @@ void resetTimer(uint8_t idx)
s_timerVal_10ms[idx] = 0 ;
}
void resetAll()
{
// TODO s_traceCnt to be reset?
resetTimer(0);
resetTimer(1);
#ifdef FRSKY
resetTelemetry();
#endif
}
static uint8_t lastSwPos[2] = {0, 0};
static uint16_t s_cnt[2] = {0, 0};
static uint16_t s_sum[2] = {0, 0};