From 7d604058779f9180b792e4ce835867ecad62b14e Mon Sep 17 00:00:00 2001 From: Ollo Date: Sun, 21 Mar 2021 21:00:47 +0100 Subject: [PATCH] Temperature must be compiled --- init.lua | 2 +- mqtt.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index 4213a0a..fba9d65 100644 --- a/init.lua +++ b/init.lua @@ -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") diff --git a/mqtt.lua b/mqtt.lua index 5efaea3..9c1a6bf 100644 --- a/mqtt.lua +++ b/mqtt.lua @@ -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