forked from airgradienthq/arduino
Merge pull request #74 from airgradienthq/develop
fix: `O-1PS` not recognize without `SGP` sensor
This commit is contained in:
@ -948,8 +948,12 @@ void boardInit(void) {
|
|||||||
hasSensorSGP = false;
|
hasSensorSGP = false;
|
||||||
Serial.println("SGP sensor not found");
|
Serial.println("SGP sensor not found");
|
||||||
|
|
||||||
Serial.println("Can not detect SGP run mode 'PP'");
|
if (hasSensorS8 == false) {
|
||||||
fw_mode = FW_MODE_PP;
|
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 */
|
/** Try to find the PMS on other difference port with S8 */
|
||||||
|
Reference in New Issue
Block a user