1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-23 16:25:16 +03:00

Fix throttle warning

No need to write a space for blinking colon as all positions are hardcoded
This commit is contained in:
Andre Bernet 2014-02-21 23:35:55 +01:00
parent 3f14d6a066
commit 47259fb40a
2 changed files with 4 additions and 1 deletions

View file

@ -318,7 +318,9 @@ void displayTopBar()
/* RTC time */ /* RTC time */
struct gtm t; struct gtm t;
gettime(&t); gettime(&t);
lcd_putcAtt(BAR_TIME_X+1, BAR_Y+1, t.tm_sec%2 ? ':' : ' ', 0); if (t.tm_sec % 2) {
lcd_putcAtt(BAR_TIME_X+1, BAR_Y+1, ':', 0);
}
lcd_outdezNAtt(BAR_TIME_X+1, BAR_Y+1, t.tm_hour, LEADING0, 2); lcd_outdezNAtt(BAR_TIME_X+1, BAR_Y+1, t.tm_hour, LEADING0, 2);
lcd_outdezNAtt(BAR_TIME_X+3*FWNUM-1, BAR_Y+1, t.tm_min, LEADING0, 2); lcd_outdezNAtt(BAR_TIME_X+3*FWNUM-1, BAR_Y+1, t.tm_min, LEADING0, 2);

View file

@ -2349,6 +2349,7 @@ void checkTHR()
} }
#else #else
if (g_model.disableThrottleWarning) return; if (g_model.disableThrottleWarning) return;
getADC();
evalInputs(e_perout_mode_notrainer); // let do evalInputs do the job evalInputs(e_perout_mode_notrainer); // let do evalInputs do the job
int16_t v = calibratedStick[thrchn]; int16_t v = calibratedStick[thrchn];
if (v<=(THRCHK_DEADBAND-1024)) return; // prevent warning if throttle input OK if (v<=(THRCHK_DEADBAND-1024)) return; // prevent warning if throttle input OK