0
0
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:
peteruithoven 2014-01-10 11:13:26 +01:00
parent 4d782681df
commit 39621b215f
2 changed files with 3 additions and 3 deletions

View File

@ -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 .. "'"

View File

@ -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'))