Skip to content

Commit

Permalink
Update compatible name and model for Pi 5
Browse files Browse the repository at this point in the history
  • Loading branch information
golemparts committed Oct 3, 2023
1 parent f83b574 commit 45817d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ fn parse_base_compatible() -> Result<Model> {
"raspberrypi,400" => Model::RaspberryPi400,
"raspberrypi,4-compute-module" => Model::RaspberryPiComputeModule4,
"raspberrypi,4-compute-module-s" => Model::RaspberryPiComputeModule4S,
"raspberrypi,5" => Model::RaspberryPi5,
"raspberrypi,5-model-b" => Model::RaspberryPi5,
_ => continue,
};

Expand Down Expand Up @@ -308,7 +308,7 @@ fn parse_base_model() -> Result<Model> {
"Raspberry Pi 400" => Model::RaspberryPi400,
"Raspberry Pi Compute Module 4" => Model::RaspberryPiComputeModule4,
"Raspberry Pi Compute Module 4S" => Model::RaspberryPiComputeModule4S,
"Raspberry Pi 5" => Model::RaspberryPi5,
"Raspberry Pi 5 Model B" => Model::RaspberryPi5,
_ => return Err(Error::UnknownModel),
};

Expand Down

0 comments on commit 45817d1

Please sign in to comment.