pms5003_micropython icon indicating copy to clipboard operation
pms5003_micropython copied to clipboard

Update pms5003.py

Open AlanBell opened this issue 4 years ago • 1 comments

data was None, so had no length, test for None before testing length. Length should never be None I think, should compare with zero. Fixes issue #5

AlanBell avatar Sep 09 '21 14:09 AlanBell

Thanks for the PR. I'm currently not feeling well enough but I'll get back to it once I feel better (may take a few weeks). Glad it works for you with this fix.

kevinkk525 avatar Sep 09 '21 15:09 kevinkk525