Fix for not sending changes to mqtt (#18600)

Co-authored-by: JeroenSt <nospam@nospam.org>
This commit is contained in:
Jeroen 2023-05-08 09:59:28 +02:00 committed by GitHub
parent 6cb92ffe49
commit 45eb82bc3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);