diff --git a/framework_lib/src/chromium_ec/commands.rs b/framework_lib/src/chromium_ec/commands.rs index 1265c798..d2b03c11 100644 --- a/framework_lib/src/chromium_ec/commands.rs +++ b/framework_lib/src/chromium_ec/commands.rs @@ -844,6 +844,7 @@ pub enum FpLedBrightnessLevel { High = 0, Medium = 1, Low = 2, + UltraLow = 3, } #[repr(C, packed)] diff --git a/framework_lib/src/commandline/mod.rs b/framework_lib/src/commandline/mod.rs index e911f773..6f3ec63f 100644 --- a/framework_lib/src/commandline/mod.rs +++ b/framework_lib/src/commandline/mod.rs @@ -93,6 +93,7 @@ pub enum FpBrightnessArg { High, Medium, Low, + UltraLow, } impl From for FpLedBrightnessLevel { fn from(w: FpBrightnessArg) -> FpLedBrightnessLevel { @@ -100,6 +101,7 @@ impl From for FpLedBrightnessLevel { FpBrightnessArg::High => FpLedBrightnessLevel::High, FpBrightnessArg::Medium => FpLedBrightnessLevel::Medium, FpBrightnessArg::Low => FpLedBrightnessLevel::Low, + FpBrightnessArg::UltraLow => FpLedBrightnessLevel::UltraLow, } } } diff --git a/framework_lib/src/commandline/uefi.rs b/framework_lib/src/commandline/uefi.rs index 69dee466..3d2c3a4c 100644 --- a/framework_lib/src/commandline/uefi.rs +++ b/framework_lib/src/commandline/uefi.rs @@ -246,6 +246,8 @@ pub fn parse(args: &[String]) -> Cli { Some(Some(FpBrightnessArg::Medium)) } else if fp_brightness_arg == "low" { Some(Some(FpBrightnessArg::Low)) + } else if fp_brightness_arg == "ultra-low" { + Some(Some(FpBrightnessArg::UltraLow)) } else { println!("Invalid value for --fp-brightness: {}", fp_brightness_arg); None