1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 14:25:20 +03:00

DISPLAY - Skip GPS page if GPS is not enabled.

This commit is contained in:
Dominic Clifton 2014-12-13 19:40:19 +00:00
parent 9bcc0acd18
commit 9cc7a5aab1

View file

@ -469,7 +469,11 @@ void updateDisplay(void)
break;
#ifdef GPS
case PAGE_GPS:
showGpsPage();
if (feature(FEATURE_GPS)) {
showGpsPage();
} else {
pageState.pageFlags |= PAGE_STATE_FLAG_FORCE_PAGE_CHANGE;
}
break;
#endif
#ifdef ENABLE_DEBUG_OLED_PAGE