Temperatur measurement needs these amount of resources

This commit is contained in:
Ollo 2022-01-06 16:50:19 +01:00
parent f35da0a3c8
commit 7f6c9689ea

View File

@ -236,7 +236,7 @@ function startMqttClient()
mMqttClient:publish(mqttPrefix .. "/brightness", tostring(briPer), 0, 0)
loldBrightness = briPer
else
if ((t ~= nil) and (heapusage > 11900)) then
if ((t ~= nil) and (heapusage > 12000)) then
local ds18b20=require("ds18b20_diet")
ds18b20.setup(2) -- GPIO4
readTemp(ds18b20) -- read once, to setup chip