File tree 2 files changed +4
-4
lines changed
framework_lib/src/commandline 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -292,8 +292,8 @@ Battery Status
292
292
Battery charging
293
293
294
294
# Set charge rate/current limit only if battery is >80% charged
295
- > sudo framework_tool --charge-rate-limit 80 0.8
296
- > sudo framework_tool --charge-current-limit 80 2000
295
+ > sudo framework_tool --charge-rate-limit 0.8 80
296
+ > sudo framework_tool --charge-current-limit 2000 80
297
297
```
298
298
299
299
## Stylus (Framework 12)
Original file line number Diff line number Diff line change @@ -157,12 +157,12 @@ struct ClapCli {
157
157
158
158
/// Get or set max charge current limit
159
159
#[ arg( long) ]
160
- #[ clap( num_args = ..2 ) ]
160
+ #[ clap( num_args = ..= 2 ) ]
161
161
charge_current_limit : Vec < u32 > ,
162
162
163
163
/// Get or set max charge current limit
164
164
#[ arg( long) ]
165
- #[ clap( num_args = ..2 ) ]
165
+ #[ clap( num_args = ..= 2 ) ]
166
166
charge_rate_limit : Vec < f32 > ,
167
167
168
168
/// Get GPIO value by name
You can’t perform that action at this time.
0 commit comments