From bb804b9f6a95eb7ffea5fde429a6def2bcedc1c0 Mon Sep 17 00:00:00 2001 From: Phat Nguyen Date: Wed, 6 Mar 2024 18:02:32 +0700 Subject: [PATCH] fix: `O-1PS` not recognize without `SGP` sensor --- examples/Open_Air/Open_Air.ino | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/examples/Open_Air/Open_Air.ino b/examples/Open_Air/Open_Air.ino index 854c1008..e13f066c 100644 --- a/examples/Open_Air/Open_Air.ino +++ b/examples/Open_Air/Open_Air.ino @@ -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 */