File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -844,6 +844,7 @@ pub enum FpLedBrightnessLevel {
844844 High = 0 ,
845845 Medium = 1 ,
846846 Low = 2 ,
847+ UltraLow = 3 ,
847848}
848849
849850#[ repr( C , packed) ]
Original file line number Diff line number Diff line change @@ -93,13 +93,15 @@ pub enum FpBrightnessArg {
9393 High ,
9494 Medium ,
9595 Low ,
96+ UltraLow ,
9697}
9798impl From < FpBrightnessArg > for FpLedBrightnessLevel {
9899 fn from ( w : FpBrightnessArg ) -> FpLedBrightnessLevel {
99100 match w {
100101 FpBrightnessArg :: High => FpLedBrightnessLevel :: High ,
101102 FpBrightnessArg :: Medium => FpLedBrightnessLevel :: Medium ,
102103 FpBrightnessArg :: Low => FpLedBrightnessLevel :: Low ,
104+ FpBrightnessArg :: UltraLow => FpLedBrightnessLevel :: UltraLow ,
103105 }
104106 }
105107}
Original file line number Diff line number Diff line change @@ -246,6 +246,8 @@ pub fn parse(args: &[String]) -> Cli {
246246 Some ( Some ( FpBrightnessArg :: Medium ) )
247247 } else if fp_brightness_arg == "low" {
248248 Some ( Some ( FpBrightnessArg :: Low ) )
249+ } else if fp_brightness_arg == "ultra-low" {
250+ Some ( Some ( FpBrightnessArg :: UltraLow ) )
249251 } else {
250252 println ! ( "Invalid value for --fp-brightness: {}" , fp_brightness_arg) ;
251253 None
You can’t perform that action at this time.
0 commit comments