diff --git a/src/app/ec.rs b/src/app/ec.rs index 3789c0b..e69c0fb 100644 --- a/src/app/ec.rs +++ b/src/app/ec.rs @@ -56,7 +56,7 @@ pub enum EcKind { impl EcKind { pub unsafe fn new(primary: bool) -> Self { - // Special case for pang12, pang13, and pang14 + // Special case for pang12, pang13, pang14, and pang15 { let mut system_version = String::new(); @@ -76,7 +76,8 @@ impl EcKind { } } - if system_version == "pang12" || system_version == "pang13" || system_version == "pang14" { + if system_version == "pang12" || system_version == "pang13" || system_version == "pang14" || + system_version == "pang15" { return EcKind::Pang( ectool::Pmc::new(0x62, UefiTimeout::new(100_000)), system_version @@ -225,7 +226,7 @@ impl EcComponent { } pub fn validate_data(&self, data: Vec) -> bool { - // Special case for pang12, pang13, and pang14 + // Special case for pang12, pang13, pang14, and pang15 match &self.ec { EcKind::Pang(_pmc, _system_version) => { // XXX: Get flash size programatically?