From 9cc7a5aab1337451ecc190c5b61cc2c4adb2c203 Mon Sep 17 00:00:00 2001 From: Dominic Clifton Date: Sat, 13 Dec 2014 19:40:19 +0000 Subject: [PATCH] DISPLAY - Skip GPS page if GPS is not enabled. --- src/main/io/display.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/io/display.c b/src/main/io/display.c index bbd69e810..417c39a71 100644 --- a/src/main/io/display.c +++ b/src/main/io/display.c @@ -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