Developing lightweight computation at the DSG edge

Commit d99a91eb authored by Roger Pueyo Centelles's avatar Roger Pueyo Centelles
Browse files

Fix location longitude value for Libremap

parent b2b01b61
......@@ -65,12 +65,12 @@ qmp_set_maps() {
[ $(qmp_uci_get services.libremap) -eq 1 ] && {
qmp_uci_get_raw libremap.location && {
local lat="$(qmp_uci_get node.latitude)"
local lon="$(qmp_uci_get node.latitude)"
local lon="$(qmp_uci_get node.longitude)"
local elev="$(qmp_uci_get node.elevation)"
[ -n "$lat" ] && [ -n "$lon" ] && {
elev=${elev:-0}
qmp_uci_set_raw libremap.location.latitude="$lat"
qmp_uci_set_raw libremap.location.latitude="$lon"
qmp_uci_set_raw libremap.location.longitude="$lon"
qmp_uci_set_raw libremap.location.elev="$elev"
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment