mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-04-07 11:26:45 +00:00
Fix gnss_assist_position enable toggle for gnss msg.
This commit is contained in:
parent
0ce60b789f
commit
269b7f4d9d
@ -174,9 +174,15 @@ impl Integration {
|
||||
gnss_assist_altitude: None,
|
||||
};
|
||||
|
||||
if let Some(loc) = get_start_location(&pl.rx_info) {
|
||||
msg_gnss.gnss_assist_position = Some(vec![loc.latitude, loc.longitude]);
|
||||
msg_gnss.gnss_assist_altitude = Some(loc.altitude);
|
||||
if self
|
||||
.config
|
||||
.modem_geolocation_services
|
||||
.gnss_use_gateway_location
|
||||
{
|
||||
if let Some(loc) = get_start_location(&pl.rx_info) {
|
||||
msg_gnss.gnss_assist_position = Some(vec![loc.latitude, loc.longitude]);
|
||||
msg_gnss.gnss_assist_altitude = Some(loc.altitude);
|
||||
}
|
||||
}
|
||||
|
||||
msg_gnss
|
||||
|
Loading…
x
Reference in New Issue
Block a user