Skip to content

Commit

Permalink
Merge pull request #235 from Tom-Bom-badil/master
Browse files Browse the repository at this point in the history
Helios plugin error fix for 1.6 and some additional changes
  • Loading branch information
msinn authored May 11, 2019
2 parents fe5c3ea + 79c8fe1 commit dbb4661
Show file tree
Hide file tree
Showing 3 changed files with 308 additions and 255 deletions.
6 changes: 3 additions & 3 deletions helios/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def _waitForSilence(self):
gotSlot = False
backupTimeout = self._port.timeout
end = time.time() + 3
self._port.timeout = 0.07
self._port.timeout = 0.007 # Changed from 0.07 --> 0.007 (7ms) according to Standard
while end > time.time():
chars = self._port.read(1)
# nothing received so we got a slot of silence...hopefully
Expand Down Expand Up @@ -409,8 +409,8 @@ def readValue(self,varname):
.format(varname, '0x%0*X' % (2, CONST_MAP_VARIABLES_TO_ID[varname]["varid"]),
'0x%0*X' % (2,raw_value), "{0:08b}".format(raw_value), raw_value, value)
)
else: # logging in debug only, so we stop spamming log file (noise on the bus seems to be normal)
self.logger.debug("Helios: No valid value for '{0}' from ventilation system received."
else: # logging as info only, so we stop spamming log file as some noise on the bus seems to be normal
self.logger.info("Helios: No valid value for '{0}' from ventilation system received."
.format(varname)
)
else:
Expand Down
Loading

0 comments on commit dbb4661

Please sign in to comment.