0
0
mirror of https://github.com/Doodle3D/doodle3d-firmware.git synced 2026-05-13 18:22:21 +02:00

Fixed concatenation of empty unformattedSsid

This commit is contained in:
peteruithoven
2015-06-15 17:08:09 +02:00
parent 93e2ce1cb7
commit cb6ddf9900
+1 -1
View File
@@ -25,7 +25,7 @@ local deviceName, deviceApi
local cachedApSsid, baseApSsid = nil, nil
function M.getSubstitutedSsid(unformattedSsid)
log:debug("getSubstitutedSsid unformattedSsid:'" .. unformattedSsid .. "' baseApSsid:'" .. (baseApSsid or "nil") .. "' cachedApSsid:'" .. (cachedApSsid or "nil"))
log:debug("getSubstitutedSsid unformattedSsid:'" .. (unformattedSsid or "nil") .. "' baseApSsid:'" .. (baseApSsid or "nil") .. "' cachedApSsid:'" .. (cachedApSsid or "nil"))
if unformattedSsid == baseApSsid and cachedApSsid ~= nil then return cachedApSsid end
if not unformattedSsid or type(unformattedSsid) ~= 'string' then return nil end