From 332d3b9660dad0788e573d9f5040281fad6776c4 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Mon, 20 Sep 2021 16:45:29 +0200 Subject: ch-sensors1 add new 1-wire therm sensor and fix regexp --- files/common/openwrt/sensors.module_lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'files/common/openwrt') 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 -- cgit v1.2.3