mirror of
https://github.com/DigitalDevices/octonet.git
synced 2023-10-10 13:36:52 +02:00
Temperature monitor: fix broken fix
b6f4ff3206afd4b1a706a233fb793d02453604f0
This commit is contained in:
parent
ddcf792c6a
commit
28f48ece42
@ -53,6 +53,8 @@ local StartIndex = 1
|
|||||||
local count = interval
|
local count = interval
|
||||||
local fanstate = -1
|
local fanstate = -1
|
||||||
|
|
||||||
|
sleep(30)
|
||||||
|
|
||||||
local ddbridge = io.open("/sys/class/ddbridge/ddbridge0/devid0","r");
|
local ddbridge = io.open("/sys/class/ddbridge/ddbridge0/devid0","r");
|
||||||
if ddbridge then
|
if ddbridge then
|
||||||
local devid = ddbridge:read("*l")
|
local devid = ddbridge:read("*l")
|
||||||
@ -70,8 +72,6 @@ if ddbridge then
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
sleep(30)
|
|
||||||
|
|
||||||
for i = 0,4,1 do
|
for i = 0,4,1 do
|
||||||
temp = ReadTemp(i)
|
temp = ReadTemp(i)
|
||||||
if temp > 0 then
|
if temp > 0 then
|
||||||
@ -91,7 +91,7 @@ if NumSensors == 0 then
|
|||||||
end
|
end
|
||||||
|
|
||||||
while true do
|
while true do
|
||||||
sleep(5)
|
sleep(1)
|
||||||
temps = ""
|
temps = ""
|
||||||
for i = 0, NumSensors - 1, 1 do
|
for i = 0, NumSensors - 1, 1 do
|
||||||
temp = ReadTemp(Sensor[i])
|
temp = ReadTemp(Sensor[i])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user