fixed missing forward declaration (#2975)

This commit is contained in:
Andreas 2019-12-13 11:53:39 +01:00 committed by Marcel Stör
parent 948325a996
commit f56722074a
1 changed files with 3 additions and 1 deletions

View File

@ -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