diff --git a/lua_modules/ds18b20/ds18b20.lua b/lua_modules/ds18b20/ds18b20.lua index bc1b1c99..dba2ee46 100644 --- a/lua_modules/ds18b20/ds18b20.lua +++ b/lua_modules/ds18b20/ds18b20.lua @@ -126,7 +126,7 @@ function read(addr, unit) if((t1 == nil ) or (t2 ==nil)) then return nil else - return t1.."."..t2 + return t1.."."..string.format("%04u", t2) end end