pms5003_micropython
pms5003_micropython copied to clipboard
Update pms5003.py
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
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.