Skip to content

Commit 67043cc

Browse files
Merge pull request #182 from FrameworkComputer/current-writeonly
Current and charge rate limit cannot be read
2 parents 467b0da + aa36388 commit 67043cc

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

framework_lib/src/commandline/clap_std.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,14 +167,14 @@ struct ClapCli {
167167
#[arg(long)]
168168
charge_limit: Option<Option<u8>>,
169169

170-
/// Get or set max charge current limit
170+
/// Set max charge current limit
171171
#[arg(long)]
172-
#[clap(num_args = ..=2)]
172+
#[clap(num_args = 1..=2)]
173173
charge_current_limit: Vec<u32>,
174174

175-
/// Get or set max charge current limit
175+
/// Set max charge current limit
176176
#[arg(long)]
177-
#[clap(num_args = ..=2)]
177+
#[clap(num_args = 1..=2)]
178178
charge_rate_limit: Vec<f32>,
179179

180180
/// Get GPIO value by name or all, if no name provided

framework_lib/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//! A library to interact with [Framework Computer](https://frame.work) hardware and building tools to do so.
22
33
#![cfg_attr(feature = "uefi", no_std)]
4+
#![allow(clippy::uninlined_format_args)]
45

56
extern crate alloc;
67
#[cfg(feature = "uefi")]

0 commit comments

Comments
 (0)