fix GD5 (untested)
This commit is contained in:
parent
897e002251
commit
c63c31a1d4
|
|
@ -1554,12 +1554,12 @@ void Display::drawGPS(DispEntry *de) {
|
|||
// equirectangular approximation is good enough
|
||||
if( !VALIDPOS(sonde.si()->d.validPos) ) {
|
||||
snprintf(buf, 16, "no pos ");
|
||||
if(de->extra && *de->extra=='5') buf[5]=0;
|
||||
if( de->extra[1]=='5') buf[5]=0;
|
||||
} else if( disp.gpsDist < 0 ) {
|
||||
snprintf(buf, 16, "no gps ");
|
||||
if(de->extra && *de->extra=='5') buf[5]=0;
|
||||
if( de->extra[1]=='5') buf[5]=0;
|
||||
} else {
|
||||
if(de->extra && *de->extra=='5') { // 5-character version: ****m / ***km / **e6m
|
||||
if( de->extra[1]=='5') { // 5-character version: ****m / ***km / **e6m
|
||||
if(disp.gpsDist>999999) snprintf(buf, 16, "%de6m ", (int)(disp.gpsDist/1000000));
|
||||
if(disp.gpsDist>9999) snprintf(buf, 16, "%dkm ", (int)(disp.gpsDist/1000));
|
||||
else snprintf(buf, 16, "%dm ", (int)disp.gpsDist);
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
const char *version_name = "rdzTTGOsonde";
|
||||
const char *version_id = "devel20221113";
|
||||
const char *version_id = "devel20221217";
|
||||
const int SPIFFS_MAJOR=2;
|
||||
const int SPIFFS_MINOR=17;
|
||||
|
|
|
|||
Loading…
Reference in New Issue