station update also if disconected
This commit is contained in:
parent
4622f6f99a
commit
9fdfc02caf
|
|
@ -3578,7 +3578,7 @@ void sondehub_reply_handler(WiFiClient * client) {
|
||||||
|
|
||||||
// also handle periodic station updates here...
|
// also handle periodic station updates here...
|
||||||
// interval check moved to sondehub_station_update to avoid having to calculate distance in auto mode twice
|
// interval check moved to sondehub_station_update to avoid having to calculate distance in auto mode twice
|
||||||
if (shState == SH_CONN_IDLE) {
|
if (shState == SH_CONN_IDLE || shState == SH_DISCONNECTED ) {
|
||||||
// (do not set station update while a telemetry report is being sent
|
// (do not set station update while a telemetry report is being sent
|
||||||
sondehub_station_update(&shclient, &sonde.config.sondehub);
|
sondehub_station_update(&shclient, &sonde.config.sondehub);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue