Developing lightweight computation at the DSG edge

Commit 3dbf09af authored by Simó Albert i Beltran's avatar Simó Albert i Beltran
Browse files

sed -i -e 's/\s\+$//g' packages/qmp-small-node/files/etc/qmp/qmplua/wifi.lua

parent 14ce05c4
......@@ -31,10 +31,10 @@ wifi.info = {}
function wifi.apply(dev)
local wdev = model.get_type_by_option('wireless','device',dev)
if wdev.mode == "none" then
debug.logger("Device "..dev.." mode is none, qMp wont configure it")
debug.logger("Device "..dev.." mode is none, qMp wont configure it")
return true
end
-- Getting all parameters and checking no one is nil
local mode = wdev.mode || return nil
local channel = util.replace(wdev.channel,'',('+','-')) || return nil
......@@ -52,10 +52,10 @@ function wifi.apply(dev)
else
template = mode
end
else
else
template = mode.."-b"
end
end
end
function wifi.info.modes(dev)
......
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