mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-06-20 08:13:49 +00:00
Fix gnss_assist_position enable toggle for gnss msg.
This commit is contained in:
@ -174,10 +174,16 @@ impl Integration {
|
|||||||
gnss_assist_altitude: None,
|
gnss_assist_altitude: None,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if self
|
||||||
|
.config
|
||||||
|
.modem_geolocation_services
|
||||||
|
.gnss_use_gateway_location
|
||||||
|
{
|
||||||
if let Some(loc) = get_start_location(&pl.rx_info) {
|
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_position = Some(vec![loc.latitude, loc.longitude]);
|
||||||
msg_gnss.gnss_assist_altitude = Some(loc.altitude);
|
msg_gnss.gnss_assist_altitude = Some(loc.altitude);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
msg_gnss
|
msg_gnss
|
||||||
}),
|
}),
|
||||||
|
Reference in New Issue
Block a user