Commit 18ab45c
committed
Add --charge-rate-limit
Usually the user won't want to specify a mA value to limit the charge
current. Setting a charge rate 0.0-1.0 is more useful.
```
PS C:\Users\Daniel\clone\framework-system-private> sudo .\target\debug\framework_tool.exe --power
Charger Status
AC is: connected
Charger Voltage: 17800mV
Charger Current: 2740mA
0.6998723C
Chg Input Current:2848mA
Battery SoC: 94%
Battery Status
AC is: connected
Battery is: connected
Battery LFCC: 4021 mAh (Last Full Charge Capacity)
Battery Capacity: 3751 mAh
66.512 Wh
Charge level: 93%
Battery charging
PS C:\Users\Daniel\clone\framework-system-private> sudo .\target\debug\framework_tool.exe --charge-rate-limit 0.5
Requested Rate: 0.5C
Design Current: 3915mA
Limiting Current to: 1957mA
PS C:\Users\Daniel\clone\framework-system-private> sudo .\target\debug\framework_tool.exe --power
Charger Status
AC is: connected
Charger Voltage: 17800mV
Charger Current: 1956mA
0.49961686C
Chg Input Current:2848mA
Battery SoC: 94%
Battery Status
AC is: connected
Battery is: connected
Battery LFCC: 4021 mAh (Last Full Charge Capacity)
Battery Capacity: 3754 mAh
66.584 Wh
Charge level: 93%
Battery charging
```
Signed-off-by: Daniel Schaefer <dhs@frame.work>1 parent 1c1c59d commit 18ab45c
File tree
5 files changed
+74
-2
lines changed- framework_lib/src
- chromium_ec
- commandline
5 files changed
+74
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
407 | 408 | | |
408 | 409 | | |
409 | 410 | | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
410 | 434 | | |
411 | 435 | | |
412 | 436 | | |
| |||
1096 | 1120 | | |
1097 | 1121 | | |
1098 | 1122 | | |
1099 | | - | |
| 1123 | + | |
1100 | 1124 | | |
1101 | 1125 | | |
1102 | 1126 | | |
| |||
1113 | 1137 | | |
1114 | 1138 | | |
1115 | 1139 | | |
| 1140 | + | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
1116 | 1144 | | |
1117 | 1145 | | |
1118 | 1146 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
163 | 168 | | |
164 | 169 | | |
165 | 170 | | |
| |||
318 | 323 | | |
319 | 324 | | |
320 | 325 | | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
321 | 331 | | |
322 | 332 | | |
323 | 333 | | |
| |||
372 | 382 | | |
373 | 383 | | |
374 | 384 | | |
| 385 | + | |
375 | 386 | | |
376 | 387 | | |
377 | 388 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| 179 | + | |
179 | 180 | | |
180 | 181 | | |
181 | 182 | | |
| |||
765 | 766 | | |
766 | 767 | | |
767 | 768 | | |
| 769 | + | |
| 770 | + | |
768 | 771 | | |
769 | 772 | | |
770 | 773 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| 92 | + | |
92 | 93 | | |
93 | 94 | | |
94 | 95 | | |
| |||
296 | 297 | | |
297 | 298 | | |
298 | 299 | | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
299 | 329 | | |
300 | 330 | | |
301 | 331 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
471 | 471 | | |
472 | 472 | | |
473 | 473 | | |
474 | | - | |
475 | 474 | | |
| 475 | + | |
476 | 476 | | |
477 | 477 | | |
478 | 478 | | |
| |||
0 commit comments