1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-24 08:45:24 +03:00

[Horus] Stats menu refactoring

This commit is contained in:
Bertrand Songis 2016-03-14 21:56:53 +01:00
parent 13657587b1
commit 7adccc23dc
8 changed files with 116 additions and 170 deletions

View file

@ -929,19 +929,17 @@ extern uint16_t lastMixerDuration;
#endif
#if defined(THRTRACE)
#define MAXTRACE (LCD_W - 8)
extern uint8_t s_traceBuf[MAXTRACE];
#if LCD_W >= 255
extern int16_t s_traceWr;
extern int16_t s_traceCnt;
#if defined(COLORLCD)
#define MAXTRACE (LCD_W-2*10)
#else
extern uint8_t s_traceWr;
extern int16_t s_traceCnt;
#define MAXTRACE (LCD_W - 8)
#endif
extern uint8_t s_traceBuf[MAXTRACE];
extern uint16_t s_traceWr;
extern uint8_t s_cnt_10s;
extern uint16_t s_cnt_samples_thr_10s;
extern uint16_t s_sum_samples_thr_10s;
#define RESET_THR_TRACE() s_traceCnt = s_traceWr = s_cnt_10s = s_cnt_samples_thr_10s = s_sum_samples_thr_10s = s_timeCum16ThrP = s_timeCumThr = 0
#define RESET_THR_TRACE() s_traceWr = s_cnt_10s = s_cnt_samples_thr_10s = s_sum_samples_thr_10s = s_timeCum16ThrP = s_timeCumThr = 0
#else
#define RESET_THR_TRACE() s_timeCum16ThrP = s_timeCumThr = 0
#endif