mirror of
https://github.com/Doodle3D/doodle3d-firmware.git
synced 2024-12-22 19:13:49 +01:00
Small comments and log fixes
This commit is contained in:
parent
4d782681df
commit
39621b215f
@ -76,6 +76,7 @@ local function setupAutoWifiMode()
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- try to find a known network which is also visible (ordered by known network definitions)
|
-- try to find a known network which is also visible (ordered by known network definitions)
|
||||||
|
-- when it finds a access point configuration first, it will use that
|
||||||
local connectWith = nil
|
local connectWith = nil
|
||||||
for _,kn in ipairs(knownSsids) do
|
for _,kn in ipairs(knownSsids) do
|
||||||
if kn.mode == 'ap' and kn.ssid == apSsid then break end
|
if kn.mode == 'ap' and kn.ssid == apSsid then break end
|
||||||
@ -93,7 +94,6 @@ local function setupAutoWifiMode()
|
|||||||
return nil, "autowifi: could not associate with ssid '" .. connectWith .. "' (" .. msg .. ")"
|
return nil, "autowifi: could not associate with ssid '" .. connectWith .. "' (" .. msg .. ")"
|
||||||
end
|
end
|
||||||
elseif netMode ~= 'ap' or netName ~= apSsid then
|
elseif netMode ~= 'ap' or netName ~= apSsid then
|
||||||
log:info("falling back to access point mode")
|
|
||||||
local rv,msg = netconf.setupAccessPoint(apSsid)
|
local rv,msg = netconf.setupAccessPoint(apSsid)
|
||||||
if rv then
|
if rv then
|
||||||
return true, "autowifi: configured as access point with ssid '" .. apSsid .. "'"
|
return true, "autowifi: configured as access point with ssid '" .. apSsid .. "'"
|
||||||
|
@ -56,7 +56,7 @@ function M.signin()
|
|||||||
log:debug("signin attempt "..utils.dump(attempt).."/"..utils.dump(maxAttempts))
|
log:debug("signin attempt "..utils.dump(attempt).."/"..utils.dump(maxAttempts))
|
||||||
local signedin = false
|
local signedin = false
|
||||||
local localip = wifi.getLocalIP();
|
local localip = wifi.getLocalIP();
|
||||||
log:debug(" localip: "..utils.dump(localip))
|
--log:debug(" localip: "..utils.dump(localip))
|
||||||
if localip ~= nil then
|
if localip ~= nil then
|
||||||
|
|
||||||
local wifiboxid = wifi.getSubstitutedSsid(settings.get('network.cl.wifiboxid'))
|
local wifiboxid = wifi.getSubstitutedSsid(settings.get('network.cl.wifiboxid'))
|
||||||
|
Loading…
Reference in New Issue
Block a user