Skip to content

Commit

Permalink
chore: enhance message when set limit to 100%
Browse files Browse the repository at this point in the history
  • Loading branch information
charlie0129 committed May 5, 2023
1 parent a9801c1 commit 404e6ee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 404e6ee

Please sign in to comment.