Fixes on compilation for different variants

This commit is contained in:
oscgonfer 2025-07-06 08:31:57 +02:00
parent 3b317f01c3
commit a6878b6cd2
2 changed files with 3 additions and 6 deletions

View File

@ -62,7 +62,7 @@ void PMSA003ISensor::sleep() {
uint32_t PMSA003ISensor::wakeUp() {
digitalWrite(PMSA003I_ENABLE_PIN, HIGH);
state = State::ACTIVE;
return PMSA003I_WARMUP_MS
return PMSA003I_WARMUP_MS;
}
#endif /* PMSA003I_ENABLE_PIN */

View File

@ -20,11 +20,6 @@ class PMSA003ISensor : public TelemetrySensor
Adafruit_PM25AQI pmsa003i = Adafruit_PM25AQI();
PM25_AQI_Data pmsa003iData = {0};
#ifdef PMSA003I_ENABLE_PIN
void sleep();
uint32_t wakeUp();
#endif
protected:
virtual void setup() override;
@ -35,6 +30,8 @@ class PMSA003ISensor : public TelemetrySensor
};
#ifdef PMSA003I_ENABLE_PIN
void sleep();
uint32_t wakeUp();
// the PMSA003I sensor uses about 300mW on its own; support powering it off when it's not actively taking
// a reading
// put the sensor to sleep on startup