mirror of
https://github.com/DigitalDevices/octonet.git
synced 2023-10-10 13:36:52 +02:00
don't crash on empty msmdoe file
This commit is contained in:
parent
f786ff8401
commit
f4c574cccd
@ -85,8 +85,11 @@ function GetMSMode()
|
||||
local msmode = "quad"
|
||||
local tmp = io.open("/config/msmode")
|
||||
if tmp then
|
||||
msmode = tmp:read("*l")
|
||||
local t = tmp:read("*l")
|
||||
tmp:close()
|
||||
if t then
|
||||
msmode = t
|
||||
end
|
||||
elseif ReadSetting('noswitch') == "true" then
|
||||
msmode = "none"
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user