Merge pull request #74 from airgradienthq/develop

fix: `O-1PS` not recognize without `SGP` sensor
This commit is contained in:
Phat Nguyen
2024-03-06 18:13:34 +07:00
committed by GitHub

View File

@ -948,8 +948,12 @@ void boardInit(void) {
hasSensorSGP = false;
Serial.println("SGP sensor not found");
Serial.println("Can not detect SGP run 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 */