[Horus] GPS display fix

This commit is contained in:
Bertrand Songis
2016-09-01 19:00:12 +02:00
parent caf0fca1c2
commit 70846d4add
4 changed files with 23 additions and 8 deletions
+11 -4
View File
@@ -75,13 +75,20 @@ void ValueWidget::refresh()
yValue = y+18;
xLabel = x+NUMBERS_PADDING;
yLabel = y+2;
if (field >= MIXSRC_FIRST_TELEM) {
if (isGPSSensor(1+(field-MIXSRC_FIRST_TELEM)/3)) {
attrValue = LEFT | MIDSIZE | EXPANDED;
}
else {
attrValue = LEFT | DBLSIZE;
}
}
#if defined(INTERNAL_GPS)
if (field == MIXSRC_TX_GPS) {
attrValue = LEFT | MIDSIZE;
else if (field == MIXSRC_TX_GPS) {
attrValue = LEFT | MIDSIZE | EXPANDED;
}
else
#endif
{
else {
attrValue = LEFT | DBLSIZE;
}
}