Commit 215fcfb
committed
[fix] charge limit
On DC mode, when we set limit lower than current battery percent,
EC will fail to set ctrl_mode.
That cause function fail, we will keep charge when plug AC.
TEST=AC+DC set higher and lower limit, DC set higher and lower limit.
Unit can charge and discharge to limit, and stop at limit.
Signed-off-by: elmo_lan <hplan1112@gmail.com>1 parent 8109392 commit 215fcfb
1 file changed
+6
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
232 | | - | |
233 | 232 | | |
234 | 233 | | |
235 | 234 | | |
| |||
250 | 249 | | |
251 | 250 | | |
252 | 251 | | |
253 | | - | |
254 | | - | |
255 | | - | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
256 | 255 | | |
257 | | - | |
| 256 | + | |
258 | 257 | | |
259 | | - | |
260 | | - | |
261 | | - | |
| 258 | + | |
| 259 | + | |
262 | 260 | | |
263 | 261 | | |
264 | 262 | | |
| |||
0 commit comments