Horus internal GPS: settable baudrate, misc fixes, new cmake options,… (#3736)
* Horus internal GPS: settable baudrate, misc fixes, new cmake options, cosmetics, cli * Horus internal GPS: cmake changes, more CLI options, ability to send commands to the module * Compilation fixes
This commit is contained in:
@@ -75,10 +75,15 @@ void ValueWidget::refresh()
|
||||
yValue = y+18;
|
||||
xLabel = x+NUMBERS_PADDING;
|
||||
yLabel = y+2;
|
||||
if (field == MIXSRC_TX_GPS)
|
||||
#if defined(INTERNAL_GPS)
|
||||
if (field == MIXSRC_TX_GPS) {
|
||||
attrValue = LEFT | MIDSIZE;
|
||||
else
|
||||
}
|
||||
else
|
||||
#endif
|
||||
{
|
||||
attrValue = LEFT | DBLSIZE;
|
||||
}
|
||||
}
|
||||
|
||||
if (field >= MIXSRC_FIRST_TIMER && field <= MIXSRC_LAST_TIMER) {
|
||||
|
||||
@@ -136,6 +136,10 @@ void drawSourceCustomValue(coord_t x, coord_t y, source_t source, int32_t value,
|
||||
if (gpsData.fix) {
|
||||
drawGPSPosition(x, y, gpsData.longitude, gpsData.latitude, flags);
|
||||
}
|
||||
else {
|
||||
lcdDrawText(x, y, "sats: ", flags);
|
||||
lcdDrawNumber(lcdNextPos, y, gpsData.numSat, flags);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
else if (source < MIXSRC_FIRST_CH) {
|
||||
|
||||
Reference in New Issue
Block a user