@@ -175,6 +175,7 @@ pub struct Cli {
175175 pub inputdeck_mode : Option < InputDeckModeArg > ,
176176 pub expansion_bay : bool ,
177177 pub charge_limit : Option < Option < u8 > > ,
178+ pub charge_current_limit : Option < ( u32 , Option < u32 > ) > ,
178179 pub get_gpio : Option < String > ,
179180 pub fp_led_level : Option < Option < FpBrightnessArg > > ,
180181 pub fp_brightness : Option < Option < u8 > > ,
@@ -762,6 +763,8 @@ pub fn run_with_args(args: &Cli, _allupdate: bool) -> i32 {
762763 }
763764 } else if let Some ( maybe_limit) = args. charge_limit {
764765 print_err ( handle_charge_limit ( & ec, maybe_limit) ) ;
766+ } else if let Some ( ( limit, soc) ) = args. charge_current_limit {
767+ print_err ( ec. set_charge_current_limit ( limit, soc) ) ;
765768 } else if let Some ( gpio_name) = & args. get_gpio {
766769 print ! ( "Getting GPIO value {}: " , gpio_name) ;
767770 if let Ok ( value) = ec. get_gpio ( gpio_name) {
@@ -1081,6 +1084,7 @@ Options:
10811084 --inputdeck-mode Set input deck power mode [possible values: auto, off, on] (Framework 16 only)
10821085 --expansion-bay Show status of the expansion bay (Framework 16 only)
10831086 --charge-limit [<VAL>] Get or set battery charge limit (Percentage number as arg, e.g. '100')
1087+ --charge-current-limit [<VAL>] Get or set battery current charge limit (Percentage number as arg, e.g. '100')
10841088 --get-gpio <GET_GPIO> Get GPIO value by name
10851089 --fp-led-level [<VAL>] Get or set fingerprint LED brightness level [possible values: high, medium, low]
10861090 --fp-brightness [<VAL>]Get or set fingerprint LED brightness percentage
0 commit comments