Disable gps indication when HUB Protocol=none
This commit is contained in:
+17
-16
@@ -1056,23 +1056,24 @@ void menuProcFrsky(uint8_t event)
|
|||||||
}
|
}
|
||||||
#ifdef FRSKY_HUB
|
#ifdef FRSKY_HUB
|
||||||
else if (s_frsky_view == e_frsky_after_flight) {
|
else if (s_frsky_view == e_frsky_after_flight) {
|
||||||
// Latitude
|
uint8_t line=1*FH+1;
|
||||||
#define LAT_LINE (1*FH+1)
|
if (g_model.frsky.usrProto == 1) { // FrSky Hub
|
||||||
lcd_putsLeft(LAT_LINE, STR_LATITUDE);
|
// Latitude
|
||||||
displayGpsCoord(LAT_LINE, frskyHubData.gpsLatitudeNS, frskyHubData.gpsLatitude_bp, frskyHubData.gpsLatitude_ap);
|
lcd_putsLeft(line, STR_LATITUDE);
|
||||||
// Longitude
|
displayGpsCoord(line, frskyHubData.gpsLatitudeNS, frskyHubData.gpsLatitude_bp, frskyHubData.gpsLatitude_ap);
|
||||||
#define LONG_LINE (2*FH+2)
|
// Longitude
|
||||||
lcd_putsLeft(LONG_LINE, STR_LONGITUDE);
|
line+=1*FH+1;
|
||||||
displayGpsCoord(LONG_LINE, frskyHubData.gpsLongitudeEW, frskyHubData.gpsLongitude_bp, frskyHubData.gpsLongitude_ap);
|
lcd_putsLeft(line, STR_LONGITUDE);
|
||||||
|
displayGpsCoord(line, frskyHubData.gpsLongitudeEW, frskyHubData.gpsLongitude_bp, frskyHubData.gpsLongitude_ap);
|
||||||
|
displayGpsTime();
|
||||||
|
line+=1*FH+1;
|
||||||
|
}
|
||||||
// Rssi
|
// Rssi
|
||||||
#define RSSI_LINE (3*FH+3)
|
lcd_putsLeft(line, STR_MINRSSI);
|
||||||
lcd_putsLeft(RSSI_LINE, STR_MINRSSI);
|
lcd_puts(10*FW, line, STR_TX);
|
||||||
lcd_puts(10*FW, RSSI_LINE, STR_TX);
|
lcd_outdezNAtt(lcd_lastPos, line, frskyRSSI[1].min, LEFT|LEADING0, 2);
|
||||||
lcd_outdezNAtt(lcd_lastPos, RSSI_LINE, frskyRSSI[1].min, LEFT|LEADING0, 2);
|
lcd_puts(16*FW, line, STR_RX);
|
||||||
lcd_puts(16*FW, RSSI_LINE, STR_RX);
|
lcd_outdezNAtt(lcd_lastPos, line, frskyRSSI[0].min, LEFT|LEADING0, 2);
|
||||||
lcd_outdezNAtt(lcd_lastPos, RSSI_LINE, frskyRSSI[0].min, LEFT|LEADING0, 2);
|
|
||||||
|
|
||||||
displayGpsTime();
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user