更新wifi连接的代码,改三角形的连接为1秒超时

This commit is contained in:
gcw_4spBpAfv
2026-05-13 16:08:00 +08:00
parent 0a1c7cff5c
commit 4b94e03413
7 changed files with 97 additions and 165 deletions

View File

@@ -159,7 +159,7 @@ def voltage_to_percent(voltage):
return 0
if v <= 0:
return 0
return int(round(_BATTERY_MONITOR.get_soc(v)))
return int(int(_BATTERY_MONITOR.get_soc(v) * 10) / 10) # 截断而不是四舍五入
class BatteryMonitor: