Temperature must be compiled

This commit is contained in:
Ollo 2021-03-21 21:00:47 +01:00
parent 9cd54da774
commit 7d60405877
2 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ initTimer:register(5000, tmr.ALARM_SINGLE, function (t)
initTimer:unregister()
initTimer=nil
bootledtimer=nil
local modlist = { "timecore" , "displayword" }
local modlist = { "timecore" , "displayword", "ds18b20" }
for i,mod in pairs(modlist) do
if (file.open(mod .. "_diet.lua")) then
file.remove(mod .. "_diet.lc")

View File

@ -155,7 +155,7 @@ function startMqttClient()
if (mqttServer ~= nil and mqttPrefix ~= nil) then
registerMqtt()
print "Started MQTT client"
if (file.open("ds18b20_diet.lua")) then
if (file.open("ds18b20_diet.lc")) then
t=require("ds18b20_diet")
t.setup(2) -- GPIO4
readTemp() -- read once, to setup chip