From 404e6ee69e7f88519b4c6e42a586ecd3f3926d99 Mon Sep 17 00:00:00 2001 From: Charlie Chiang Date: Sat, 6 May 2023 01:10:52 +0800 Subject: [PATCH] chore: enhance message when set limit to 100% --- handler.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/handler.go b/handler.go index 039d630..b53b2c5 100644 --- a/handler.go +++ b/handler.go @@ -91,6 +91,10 @@ func setLimit(c *gin.Context) { } } + if l >= 100 { + msg = "set charging limit to 100%. batt will not control charging anymore." + } + // Immediate single maintain loop, to avoid waiting for the next loop maintainLoopForced()