Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/app/ec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ pub enum EcKind {

impl EcKind {
pub unsafe fn new(primary: bool) -> Self {
// Special case for pang12, pang13, pang14, and pang15
// Special case for pang12, pang13, pang14, pang15, and panp16
{
let mut system_version = String::new();

Expand All @@ -82,6 +82,7 @@ impl EcKind {
|| system_version == "pang13"
|| system_version == "pang14"
|| system_version == "pang15"
|| system_version == "panp16"
{
return EcKind::Pang(
unsafe { ectool::Pmc::new(0x62, UefiTimeout::new(100_000)) },
Expand Down Expand Up @@ -229,7 +230,7 @@ impl EcComponent {
}

pub fn validate_data(&self, data: Vec<u8>) -> bool {
// Special case for pang12, pang13, pang14, and pang15
// Special case for pang12, pang13, pang14, pang15, and panp16
match &self.ec {
EcKind::Pang(_pmc, _system_version) => {
// XXX: Get flash size programatically?
Expand Down
Loading