Skip to content

Commit

Permalink
fix: Some missing colorlcd gui if GPS on AUX1 (#1835)
Browse files Browse the repository at this point in the history
* Radio Setup missing GPS items
* Statistics missing GPS info
  • Loading branch information
CapnBry authored Apr 16, 2022
1 parent c213b1a commit f79978b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion radio/src/gui/colorlcd/radio_setup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ void RadioSetupPage::build(FormWindow * window)

#if defined(INTERNAL_GPS)
// GPS
if (hasSerialMode(UART_MODE_GPS)) {
if (hasSerialMode(UART_MODE_GPS) != -1) {
new Subtitle(window, grid.getLabelSlot(), STR_GPS, 0, COLOR_THEME_PRIMARY1);
grid.nextLine();

Expand Down
2 changes: 1 addition & 1 deletion radio/src/gui/colorlcd/view_statistics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ void DebugViewPage::build(FormWindow *window)
#endif

#if defined(INTERNAL_GPS)
if (hasSerialMode(UART_MODE_GPS)) {
if (hasSerialMode(UART_MODE_GPS) != -1) {
new StaticText(window, grid.getLabelSlot(), STR_INT_GPS_LABEL, 0,
COLOR_THEME_PRIMARY1);
new DynamicText(
Expand Down

0 comments on commit f79978b

Please sign in to comment.