fix: O-1PS not recognize without SGP sensor

This commit is contained in:
Phat Nguyen
2024-03-06 18:02:32 +07:00
parent 469d07a2d6
commit bb804b9f6a

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 */