mirror of
https://github.com/Doodle3D/doodle3d-firmware.git
synced 2025-01-03 08:13:49 +01:00
signing returns success boolean
This commit is contained in:
parent
aab27a9768
commit
e7db73a09b
@ -15,7 +15,7 @@ function M.signin()
|
|||||||
local localip = wifi.getLocalIP();
|
local localip = wifi.getLocalIP();
|
||||||
if localip == nil then
|
if localip == nil then
|
||||||
log:error("signin failed no local ip found")
|
log:error("signin failed no local ip found")
|
||||||
return
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
local wifiboxid = wifi.getSubstitutedSsid(settings.get('network.cl.wifiboxid'))
|
local wifiboxid = wifi.getSubstitutedSsid(settings.get('network.cl.wifiboxid'))
|
||||||
@ -24,7 +24,7 @@ function M.signin()
|
|||||||
local output = utils.captureCommandOutput(cmd);
|
local output = utils.captureCommandOutput(cmd);
|
||||||
log:info("signin: "..output)
|
log:info("signin: "..output)
|
||||||
|
|
||||||
return 0
|
return string.len(output) > 0
|
||||||
end
|
end
|
||||||
|
|
||||||
return M
|
return M
|
Loading…
Reference in New Issue
Block a user