File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
src/modules/Telemetry/Sensor Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ void PMSA003ISensor::sleep() {
6262uint32_t PMSA003ISensor::wakeUp () {
6363 digitalWrite (PMSA003I_ENABLE_PIN, HIGH);
6464 state = State::ACTIVE;
65- return PMSA003I_WARMUP_MS
65+ return PMSA003I_WARMUP_MS;
6666}
6767#endif /* PMSA003I_ENABLE_PIN */
6868
Original file line number Diff line number Diff line change @@ -20,11 +20,6 @@ class PMSA003ISensor : public TelemetrySensor
2020 Adafruit_PM25AQI pmsa003i = Adafruit_PM25AQI();
2121 PM25_AQI_Data pmsa003iData = {0 };
2222
23- #ifdef PMSA003I_ENABLE_PIN
24- void sleep ();
25- uint32_t wakeUp ();
26- #endif
27-
2823 protected:
2924 virtual void setup () override ;
3025
@@ -35,6 +30,8 @@ class PMSA003ISensor : public TelemetrySensor
3530 };
3631
3732#ifdef PMSA003I_ENABLE_PIN
33+ void sleep ();
34+ uint32_t wakeUp ();
3835 // the PMSA003I sensor uses about 300mW on its own; support powering it off when it's not actively taking
3936 // a reading
4037 // put the sensor to sleep on startup
You can’t perform that action at this time.
0 commit comments