Skip to content

Commit

Permalink
1. Fix support for "Raspberry PI W2 2021".
Browse files Browse the repository at this point in the history
  • Loading branch information
denisandroid committed Nov 7, 2023
1 parent 86dab12 commit f84c36a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ fn parse_base_compatible() -> Result<Model> {
"raspberrypi,3-compute-module-plus" => Model::RaspberryPiComputeModule3Plus,
"raspberrypi,model-zero-w" => Model::RaspberryPiZeroW,
"raspberrypi,model-zero-2" => Model::RaspberryPiZero2W,
"raspberrypi,model-zero-2-w" => Model::RaspberryPiZero2W,
"raspberrypi,3-model-b-plus" => Model::RaspberryPi3BPlus,
"raspberrypi,3-model-a-plus" => Model::RaspberryPi3APlus,
"raspberrypi,4-model-b" => Model::RaspberryPi4B,
Expand Down Expand Up @@ -288,6 +289,7 @@ fn parse_base_model() -> Result<Model> {
match &base_model[..] {
"Raspberry Pi Model B Rev 2.0" => return Ok(Model::RaspberryPiBRev2),
"Raspberry Pi Model B rev2 Rev 2.0" => return Ok(Model::RaspberryPiBRev2),
"Raspberry Pi Zero 2 W Rev 1.0" => return Ok(Model::RaspberryPiZero2W),
_ => (),
}

Expand All @@ -313,6 +315,7 @@ fn parse_base_model() -> Result<Model> {
"Raspberry Pi Compute Module 3 Plus" => Model::RaspberryPiComputeModule3Plus,
"Raspberry Pi Zero W" => Model::RaspberryPiZeroW,
"Raspberry Pi Zero 2" => Model::RaspberryPiZero2W,
"Raspberry Pi Zero 2 W" => Model::RaspberryPiZero2W,
"Raspberry Pi 3 Model B+" => Model::RaspberryPi3BPlus,
"Raspberry Pi 3 Model B Plus" => Model::RaspberryPi3BPlus,
"Raspberry Pi 3 Model A Plus" => Model::RaspberryPi3APlus,
Expand Down

0 comments on commit f84c36a

Please sign in to comment.