1
0
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:
mvoelkel 2016-11-09 12:10:59 +01:00
parent f786ff8401
commit f4c574cccd

View File

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