fix: Clarify logic for matching AC and heater adjustments in synchronization
This commit is contained in:
parent
6128e585b8
commit
e5f9331d30
@ -1539,8 +1539,8 @@ document.addEventListener('DOMContentLoaded', function() {{
|
|||||||
if (isNaN(hv) || isNaN(av)) continue;
|
if (isNaN(hv) || isNaN(av)) continue;
|
||||||
|
|
||||||
if (hv > av) {{
|
if (hv > av) {{
|
||||||
if (last && last.value === 'ac') {{ h.value = av; }}
|
if (last && last.value === 'ac') {{ h.value = av; }} // AC lowered → match heat down
|
||||||
else {{ a.value = hv; }}
|
else {{ a.value = hv; }} // Heat raised → match AC up
|
||||||
}}
|
}}
|
||||||
}}
|
}}
|
||||||
}});
|
}});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user