mirror of
https://github.com/xoseperez/espurna.git
synced 2026-03-23 08:37:08 +01:00
Call wakeUp PMS on first reading cycle to avoid not data in a long period (e.g. PMS entered sleeping and then espurna reboot, we should wake up PMS right now)
This commit is contained in:
@@ -269,6 +269,9 @@ class PMSX003Sensor : public BaseSensor, PMSX003 {
|
||||
}
|
||||
} else {
|
||||
readCycle = -1;
|
||||
if (_readCount == 1) {
|
||||
wakeUp();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user