We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5aa015b + 1fde7ae commit 389ab68Copy full SHA for 389ab68
1 file changed
src/app/ec.rs
@@ -58,7 +58,7 @@ pub enum EcKind {
58
59
impl EcKind {
60
pub unsafe fn new(primary: bool) -> Self {
61
- // Special case for pang12, pang13, pang14, and pang15
+ // Special case for pang12, pang13, pang14, pang15, and panp16
62
{
63
let mut system_version = String::new();
64
@@ -82,6 +82,7 @@ impl EcKind {
82
|| system_version == "pang13"
83
|| system_version == "pang14"
84
|| system_version == "pang15"
85
+ || system_version == "panp16"
86
87
return EcKind::Pang(
88
unsafe { ectool::Pmc::new(0x62, UefiTimeout::new(100_000)) },
@@ -229,7 +230,7 @@ impl EcComponent {
229
230
}
231
232
pub fn validate_data(&self, data: Vec<u8>) -> bool {
233
234
match &self.ec {
235
EcKind::Pang(_pmc, _system_version) => {
236
// XXX: Get flash size programatically?
0 commit comments