Browse Source

Apparently there's a space in the alternate fault message.

pyserial_fix
Scott Petersen 7 years ago
parent
commit
c6748529a0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      alarmdecoder/decoder.py

+ 1
- 1
alarmdecoder/decoder.py View File

@@ -695,7 +695,7 @@ class AlarmDecoder(object):
# Retrieve a list of faults.
# NOTE: This only happens on first boot or after exiting programming mode.
if isinstance(message, Message):
if not message.ready and ("Hit * for faults" in message.text or "Press * to show faults" in message.text):
if not message.ready and ("Hit * for faults" in message.text or "Press * to show faults" in message.text):
if time.time() > self.last_fault_expansion + self.fault_expansion_time_limit:
self.last_fault_expansion = time.time()
self.send('*')


Loading…
Cancel
Save