Skip to content

Commit

Permalink
Now thros exception if no message recieved
Browse files Browse the repository at this point in the history
  • Loading branch information
pjb304 committed Sep 1, 2018
1 parent 6eef1f1 commit 80c09e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions plantower/plantower.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,3 +133,4 @@ def read(self, perform_flush=True):
self._verify(recv) # verify the checksum
return PlantowerReading(recv) # convert to reading object
#If the character isn't what we are expecting loop until timeout
raise PlantowerException("No message recieved")
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="plantower",
version="0.0.2",
version="0.0.3",
author="Philip Basford",
author_email="[email protected]",
description="An interface for plantower particulate matter sensors",
Expand Down

0 comments on commit 80c09e8

Please sign in to comment.