mirror of
https://github.com/Doodle3D/doodle3d-firmware.git
synced 2024-12-22 11:03:48 +01:00
Ignoring API:config/reset issues for now
This commit is contained in:
parent
87a4c2a830
commit
b56a0ed1a9
@ -361,11 +361,14 @@ function M.reset(key)
|
|||||||
section = M.get(base.subSection)
|
section = M.get(base.subSection)
|
||||||
end
|
end
|
||||||
local rv, msg = uci:delete(UCI_CONFIG_NAME, section, key)
|
local rv, msg = uci:delete(UCI_CONFIG_NAME, section, key)
|
||||||
if not rv and msg ~= nil then
|
|
||||||
local errorMSG = "Issue deleting setting '"..utils.dump(key).."' in section '"..section.."': "..utils.dump(msg);
|
|
||||||
log:info(errorMSG)
|
log:info(errorMSG)
|
||||||
return nil, errorMSG;
|
-- we can't respond to errors in general here because when a key isn't found
|
||||||
end
|
-- (which always happens when reset is used in resetall) it will also generate a error
|
||||||
|
--if not rv and msg ~= nil then
|
||||||
|
-- local errorMSG = "Issue deleting setting '"..utils.dump(key).."' in section '"..section.."': "..utils.dump(msg);
|
||||||
|
-- log:info(errorMSG)
|
||||||
|
-- return nil, errorMSG;
|
||||||
|
--end
|
||||||
|
|
||||||
-- reuse get logic to retrieve default and set it.
|
-- reuse get logic to retrieve default and set it.
|
||||||
M.set(key,M.get(key))
|
M.set(key,M.get(key))
|
||||||
|
Loading…
Reference in New Issue
Block a user