From 45eb82bc3fe01d4ab32d1a105f5e20c61c82db3f Mon Sep 17 00:00:00 2001 From: Jeroen Date: Mon, 8 May 2023 09:59:28 +0200 Subject: [PATCH] Fix for not sending changes to mqtt (#18600) Co-authored-by: JeroenSt --- tasmota/tasmota_xsns_sensor/xsns_34_hx711.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasmota/tasmota_xsns_sensor/xsns_34_hx711.ino b/tasmota/tasmota_xsns_sensor/xsns_34_hx711.ino index a12cce716..0a833b6fa 100644 --- a/tasmota/tasmota_xsns_sensor/xsns_34_hx711.ino +++ b/tasmota/tasmota_xsns_sensor/xsns_34_hx711.ino @@ -430,7 +430,7 @@ void HxEvery100mSecond(void) { Hx.weight_diff = Hx.weight; Hx.weight_changed = true; } - else if (Hx.weight_changed && (Hx.weight == Hx.weight_diff)) { + else if (Hx.weight_changed && (abs(Hx.weight - Hx.weight_diff) < Hx.weight_delta)) { ResponseClear(); ResponseAppendTime(); HxShow(true);