Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions EXAMPLES.md
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,8 @@ Battery Status
Battery charging

# Set charge rate/current limit only if battery is >80% charged
> sudo framework_tool --charge-rate-limit 80 0.8
> sudo framework_tool --charge-current-limit 80 2000
> sudo framework_tool --charge-rate-limit 0.8 80
> sudo framework_tool --charge-current-limit 2000 80
```

## Stylus (Framework 12)
Expand Down
4 changes: 2 additions & 2 deletions framework_lib/src/commandline/clap_std.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,12 @@ struct ClapCli {

/// Get or set max charge current limit
#[arg(long)]
#[clap(num_args = ..2)]
#[clap(num_args = ..=2)]
charge_current_limit: Vec<u32>,

/// Get or set max charge current limit
#[arg(long)]
#[clap(num_args = ..2)]
#[clap(num_args = ..=2)]
charge_rate_limit: Vec<f32>,

/// Get GPIO value by name
Expand Down