Browse Source

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)

webui
Yonsm 6 years ago
parent
commit
9cbe8dcdf5
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      code/espurna/sensors/PMSX003Sensor.h

+ 3
- 0
code/espurna/sensors/PMSX003Sensor.h View File

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


Loading…
Cancel
Save