Skip to content

Commit

Permalink
Merge pull request #74 from airgradienthq/develop
Browse files Browse the repository at this point in the history
fix: `O-1PS` not recognize without `SGP` sensor
  • Loading branch information
pnt325 authored Mar 6, 2024
2 parents 1a00073 + bb804b9 commit a7b2ad5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions examples/Open_Air/Open_Air.ino
Original file line number Diff line number Diff line change
Expand Up @@ -948,8 +948,12 @@ void boardInit(void) {
hasSensorSGP = false;
Serial.println("SGP sensor not found");

Serial.println("Can not detect SGP run mode 'PP'");
fw_mode = FW_MODE_PP;
if (hasSensorS8 == false) {
fw_mode = FW_MODE_PP;
Serial.println("Can not detect SGP run mode 'PP'");
} else {
Serial.println("Can not detect SGP run mode 'PST' without SGP");
}
}

/** Try to find the PMS on other difference port with S8 */
Expand Down

0 comments on commit a7b2ad5

Please sign in to comment.