mirror of
https://github.com/jkingsman/Remote-Terminal-for-MeshCore.git
synced 2026-07-06 01:42:11 +02:00
Be clearer about reality of location inclusion. Closes #53
This commit is contained in:
@@ -33,11 +33,7 @@ async def apply_radio_config_update(
|
||||
) -> None:
|
||||
"""Apply a validated radio-config update to the connected radio."""
|
||||
if update.advert_location_source is not None:
|
||||
advert_loc_policy = {
|
||||
"off": 0,
|
||||
"node_gps": 1,
|
||||
"saved_coords": 2,
|
||||
}[update.advert_location_source]
|
||||
advert_loc_policy = 0 if update.advert_location_source == "off" else 1
|
||||
logger.info(
|
||||
"Setting advert location policy to %s",
|
||||
update.advert_location_source,
|
||||
|
||||
Reference in New Issue
Block a user