more efficient type check

pull/80/head
Hansi, dl9rdz 2021-05-23 19:20:46 +02:00
rodzic 5fdb008a11
commit a87732d8f8
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -2976,7 +2976,7 @@ void sondehub_send_data(WiFiClient *client, SondeInfo *s, struct st_sondehub *co
if ((int)s->sats < 4) return; // If not enough sats don't send to SondeHub
if (String(sondeTypeStr[s->type]) == "RS41" || String(sondeTypeStr[s->type]) == "RS92" || String(sondeTypeStr[s->type]) == "M10" || String(sondeTypeStr[s->type]) == "M20") {
if( s->type == STYPE_RS41 || s->type == STYPE_RS92 || s->type == STYPE_M10 || s->type == STYPE_M20 ) {
t += 18; // convert back to GPS time from UTC time +18s
}