修复后台电量显示数据错误

This commit is contained in:
nhkefus
2025-03-19 14:51:20 +08:00
parent 78dbc6209b
commit 840b0eb374
2 changed files with 2 additions and 1 deletions

View File

@@ -56,6 +56,7 @@ TC1 排插硬件分 A1 A2 两个版本, 本固件仅支持 **A1 版本**. A1 A2
- [x] 后台和ha mqtt增加总开关控制
- [x] 后台可以自定义6个插座的名称名称将会自动同步到ha mqtt
- [x] 修复了原代码中电源按钮长按 重新配网和恢复出厂的逻辑错误
- [x] 后台和ha mqtt中增加了童锁开关开启童锁则上电以后不再响应任何电源按钮的事件上电之前就按下的话会开启配网热点原有逻辑
# 编译固件

View File

@@ -1080,7 +1080,7 @@
w_v_t = w_v_t < 0 ? 0 : w_v_t;
w_t.innerHTML = w_v_t.toFixed(3);
var w_v_y = (17.1 * power.p_count_1_day_ago - power.p_count_2_days_ago) / 1000 / 36000;
w_v_y = w_v_y < 0 ? 0 : w_v_t;
w_v_y = w_v_y < 0 ? 0 : w_v_y;
w_y.innerHTML = w_v_y.toFixed(3);
if (power.child_lock_enabled == 1) {
switch_lables[0].MaterialSwitch.on();