diff options
Diffstat (limited to 'files/common')
-rw-r--r-- | files/common/openwrt/sensors.module_lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/files/common/openwrt/sensors.module_lua b/files/common/openwrt/sensors.module_lua index 0767733d..4139f1aa 100644 --- a/files/common/openwrt/sensors.module_lua +++ b/files/common/openwrt/sensors.module_lua @@ -149,7 +149,7 @@ function _M.w1_device_path(address) end function _M.w1_device_family_and_serial(address) - local family, serial = string.match(address, '^(%d+)%-(%d+)$') + local family, serial = string.match(address, '^(%x+)%-(%x+)$') if not family then return nil, "unable to extract device family and serial from 1-wire address " .. address end return family, serial end |