mirror of
https://github.com/Doodle3D/doodle3d-firmware.git
synced 2024-12-22 11:03:48 +01:00
Small comments and log fixes
This commit is contained in:
parent
4d782681df
commit
39621b215f
@ -76,6 +76,7 @@ local function setupAutoWifiMode()
|
||||
end
|
||||
|
||||
-- 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
|
||||
for _,kn in ipairs(knownSsids) do
|
||||
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 .. ")"
|
||||
end
|
||||
elseif netMode ~= 'ap' or netName ~= apSsid then
|
||||
log:info("falling back to access point mode")
|
||||
local rv,msg = netconf.setupAccessPoint(apSsid)
|
||||
if rv then
|
||||
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))
|
||||
local signedin = false
|
||||
local localip = wifi.getLocalIP();
|
||||
log:debug(" localip: "..utils.dump(localip))
|
||||
--log:debug(" localip: "..utils.dump(localip))
|
||||
if localip ~= nil then
|
||||
|
||||
local wifiboxid = wifi.getSubstitutedSsid(settings.get('network.cl.wifiboxid'))
|
||||
|
Loading…
Reference in New Issue
Block a user