mirror of
https://github.com/meshtastic/firmware.git
synced 2025-07-31 02:45:41 +00:00
Fixes on compilation for different variants
This commit is contained in:
parent
3b317f01c3
commit
a6878b6cd2
@ -62,7 +62,7 @@ void PMSA003ISensor::sleep() {
|
|||||||
uint32_t PMSA003ISensor::wakeUp() {
|
uint32_t PMSA003ISensor::wakeUp() {
|
||||||
digitalWrite(PMSA003I_ENABLE_PIN, HIGH);
|
digitalWrite(PMSA003I_ENABLE_PIN, HIGH);
|
||||||
state = State::ACTIVE;
|
state = State::ACTIVE;
|
||||||
return PMSA003I_WARMUP_MS
|
return PMSA003I_WARMUP_MS;
|
||||||
}
|
}
|
||||||
#endif /* PMSA003I_ENABLE_PIN */
|
#endif /* PMSA003I_ENABLE_PIN */
|
||||||
|
|
||||||
|
@ -20,11 +20,6 @@ class PMSA003ISensor : public TelemetrySensor
|
|||||||
Adafruit_PM25AQI pmsa003i = Adafruit_PM25AQI();
|
Adafruit_PM25AQI pmsa003i = Adafruit_PM25AQI();
|
||||||
PM25_AQI_Data pmsa003iData = {0};
|
PM25_AQI_Data pmsa003iData = {0};
|
||||||
|
|
||||||
#ifdef PMSA003I_ENABLE_PIN
|
|
||||||
void sleep();
|
|
||||||
uint32_t wakeUp();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void setup() override;
|
virtual void setup() override;
|
||||||
|
|
||||||
@ -35,6 +30,8 @@ class PMSA003ISensor : public TelemetrySensor
|
|||||||
};
|
};
|
||||||
|
|
||||||
#ifdef PMSA003I_ENABLE_PIN
|
#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
|
// the PMSA003I sensor uses about 300mW on its own; support powering it off when it's not actively taking
|
||||||
// a reading
|
// a reading
|
||||||
// put the sensor to sleep on startup
|
// put the sensor to sleep on startup
|
||||||
|
Loading…
Reference in New Issue
Block a user