From f56722074a15eb89c7306ef82ae6d7b47f300ccd Mon Sep 17 00:00:00 2001 From: Andreas Date: Fri, 13 Dec 2019 11:53:39 +0100 Subject: [PATCH] fixed missing forward declaration (#2975) --- lua_modules/ds18b20/ds18b20.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua_modules/ds18b20/ds18b20.lua b/lua_modules/ds18b20/ds18b20.lua index b672c87a..50d9a341 100644 --- a/lua_modules/ds18b20/ds18b20.lua +++ b/lua_modules/ds18b20/ds18b20.lua @@ -50,6 +50,8 @@ local function to_string(addr, esc) end end +local conversion + local function readout(self) local next = false local sens = self.sens @@ -114,7 +116,7 @@ local function readout(self) end end -local function conversion(self) +conversion = function (self) local sens = self.sens local powered_only = true for _, s in ipairs(sens) do powered_only = powered_only and s:byte(9) ~= 1 end