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:
Yonsm
2018-09-10 14:41:50 +08:00
parent d8eee36c2a
commit 9cbe8dcdf5

View File

@@ -269,6 +269,9 @@ class PMSX003Sensor : public BaseSensor, PMSX003 {
}
} else {
readCycle = -1;
if (_readCount == 1) {
wakeUp();
}
}
#endif