diff --git a/CHANGELOG.md b/CHANGELOG.md index 53d91df..8bf1d81 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Change Log +## 0.9.0 + +Fixes: + +* Resend 'version' if empty data received from the Build HAT + ## 0.8.0 Adds: diff --git a/VERSION b/VERSION index a3df0a6..ac39a10 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.8.0 +0.9.0 diff --git a/buildhat/serinterface.py b/buildhat/serinterface.py index 89c9c92..901dc2e 100644 --- a/buildhat/serinterface.py +++ b/buildhat/serinterface.py @@ -117,17 +117,9 @@ def __init__(self, firmware, signature, version, device="/dev/serial0", debug=Fa # Check if we're in the bootloader or the firmware self.write(b"version\r") - emptydata = 0 incdata = 0 while True: line = self.read() - if len(line) == 0: - # Didn't receive any data - emptydata += 1 - if emptydata > 3: - break - else: - continue if cmp(line, BuildHAT.FIRMWARE): self.state = HatState.FIRMWARE ver = line[len(BuildHAT.FIRMWARE):].split(' ')