diff options
author | Christian Pointner <equinox@spreadspace.org> | 2021-09-20 16:45:29 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2021-09-20 16:45:29 +0200 |
commit | 332d3b9660dad0788e573d9f5040281fad6776c4 (patch) | |
tree | 25e41b9b4f34733773116c5f65bcecb29fdac0de /files | |
parent | add sensors to lua prometheus exporter (diff) |
ch-sensors1 add new 1-wire therm sensor and fix regexp
Diffstat (limited to 'files')
-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 |