Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crash when no data to read #5

Open
AlanBell opened this issue Sep 9, 2021 · 0 comments
Open

crash when no data to read #5

AlanBell opened this issue Sep 9, 2021 · 0 comments

Comments

@AlanBell
Copy link

AlanBell commented Sep 9, 2021

can be reproduced by reducing the WAIT_AFTER_WAKEUP time on a PMS9003M, was happening occasionally with standard settings

wakeUp
wakeUp got lock
Sending command: 228,1,False,16000
waiting 10.0s
readFrame False False
__read_frame
got no values
Task exception wasn't retrieved
future: coro= <generator object '_read' at 20009660>
Traceback (most recent call last):
File "uasyncio/core.py", line 1, in run_until_complete
File "pms5003.py", line 328, in _read
File "pms5003.py", line 650, in wakeUp
File "pms5003.py", line 628, in _makeResilient
File "pms5003.py", line 192, in wakeUp
File "pms5003.py", line 254, in _sendCommand
File "pms5003.py", line 417, in _read_frame
File "pms5003.py", line 456, in __read_frame
TypeError: object of type 'NoneType' has no len()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant