Skip to content

Commit d84da36

Browse files
glumandamarcelstoer
authored andcommitted
fixed missing forward declaration (#2975)
1 parent f85c278 commit d84da36

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lua_modules/ds18b20/ds18b20.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ local function to_string(addr, esc)
5050
end
5151
end
5252

53+
local conversion
54+
5355
local function readout(self)
5456
local next = false
5557
local sens = self.sens
@@ -114,7 +116,7 @@ local function readout(self)
114116
end
115117
end
116118

117-
local function conversion(self)
119+
conversion = function (self)
118120
local sens = self.sens
119121
local powered_only = true
120122
for _, s in ipairs(sens) do powered_only = powered_only and s:byte(9) ~= 1 end

0 commit comments

Comments
 (0)