From 00ca0621e4cefc0663cd560cacc6d8783bc0d8c1 Mon Sep 17 00:00:00 2001 From: pvvx Date: Wed, 7 Feb 2024 01:58:30 +0300 Subject: [PATCH] fix setTrgCfg() --- bthome_phy6222/web/PHY62x2BTHome.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bthome_phy6222/web/PHY62x2BTHome.html b/bthome_phy6222/web/PHY62x2BTHome.html index 3cef18b..b6c2171 100644 --- a/bthome_phy6222/web/PHY62x2BTHome.html +++ b/bthome_phy6222/web/PHY62x2BTHome.html @@ -1606,7 +1606,7 @@ function setTrgCfg() { if(len > 0) { let blk = new Uint8Array(len + 1); blk[0] = 0x44; - let idx = 0; + let idx = 1; if(len != 9) { devtrg.temp_min = Math.round($("inputTempMin").value * 100); devtrg.temp_max = Math.round($("inputTempMax").value * 100);