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

Fix building without USE_CMS

This commit is contained in:
Michel Pastor 2018-07-25 16:26:47 +02:00
parent d61978b328
commit 11f1762d45

View file

@ -2735,7 +2735,11 @@ static void osdShowArmed(void)
static void osdRefresh(timeUs_t currentTimeUs) static void osdRefresh(timeUs_t currentTimeUs)
{ {
#ifdef USE_CMS
if (IS_RC_MODE_ACTIVE(BOXOSD) && (!cmsInMenu)) { if (IS_RC_MODE_ACTIVE(BOXOSD) && (!cmsInMenu)) {
#else
if (IS_RC_MODE_ACTIVE(BOXOSD)) {
#endif
displayClearScreen(osdDisplayPort); displayClearScreen(osdDisplayPort);
armState = ARMING_FLAG(ARMED); armState = ARMING_FLAG(ARMED);
return; return;