[feat](trx-client): propagate server_latitude/longitude from snapshot

Map server_latitude and server_longitude from RigSnapshot to RigState
in remote_client and set None defaults in standalone client init.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Stanislaw Grams <stanislawgrams@gmail.com>
This commit is contained in:
2026-02-08 21:44:47 +01:00
parent 6e34323cb1
commit e4db312814
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -269,6 +269,8 @@ async fn async_init() -> DynResult<AppState> {
},
server_callsign: None,
server_version: None,
server_latitude: None,
server_longitude: None,
};
let (state_tx, state_rx) = watch::channel(initial_state);
+2
View File
@@ -182,6 +182,8 @@ pub fn state_from_snapshot(snapshot: trx_core::RigSnapshot) -> RigState {
},
server_callsign: snapshot.server_callsign,
server_version: snapshot.server_version,
server_latitude: snapshot.server_latitude,
server_longitude: snapshot.server_longitude,
}
}