device/state-routes.lua: fix finding stored routes
This wrongly stored the matched route in a new variable instead of the locally declared variable it supposed to use.
This commit is contained in:
@@ -67,7 +67,7 @@ find_stored_routes_hook = SimpleEventHook {
|
|||||||
if cutils.arrayContains (ri.devices, tonumber (device_id)) and
|
if cutils.arrayContains (ri.devices, tonumber (device_id)) and
|
||||||
(ri.profiles == nil or cutils.arrayContains (ri.profiles, dev_info.active_profile)) and
|
(ri.profiles == nil or cutils.arrayContains (ri.profiles, dev_info.active_profile)) and
|
||||||
cutils.arrayContains (spr, ri.name) then
|
cutils.arrayContains (spr, ri.name) then
|
||||||
route = ri
|
route_info = ri
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user