mirror of
https://github.com/airgradienthq/arduino.git
synced 2025-07-23 05:27:16 +02:00
fix: O-1PS
not recognize without SGP
sensor
This commit is contained in:
@ -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 */
|
||||
|
Reference in New Issue
Block a user