1
0
mirror of https://github.com/DigitalDevices/octonet.git synced 2023-10-10 13:36:52 +02:00

Temperature monitor: fix broken fix

b6f4ff3206
This commit is contained in:
mvoelkel 2016-11-22 12:11:25 +01:00
parent ddcf792c6a
commit 28f48ece42

View File

@ -53,6 +53,8 @@ local StartIndex = 1
local count = interval
local fanstate = -1
sleep(30)
local ddbridge = io.open("/sys/class/ddbridge/ddbridge0/devid0","r");
if ddbridge then
local devid = ddbridge:read("*l")
@ -70,8 +72,6 @@ if ddbridge then
end
end
sleep(30)
for i = 0,4,1 do
temp = ReadTemp(i)
if temp > 0 then
@ -91,7 +91,7 @@ if NumSensors == 0 then
end
while true do
sleep(5)
sleep(1)
temps = ""
for i = 0, NumSensors - 1, 1 do
temp = ReadTemp(Sensor[i])