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
1 changed files with 5 additions and 1 deletions

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