This website works better with JavaScript.
Home
Explore
Help
Sign In
mh
/
mhsw-espurna
Watch
1
Star
0
Fork
0
Code
Releases
0
Activity
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
d8eee36c2a
commit
9cbe8dcdf5
1 changed files
with
3 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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
Write
Preview
Loading…
Cancel
Save