Skip to content

Commit

Permalink
fix: O-1PS not recognize without SGP sensor
Browse files Browse the repository at this point in the history
  • Loading branch information
pnt325 committed Mar 6, 2024
1 parent 469d07a commit bb804b9
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 bb804b9

Please sign in to comment.