Skip to content

Commit

Permalink
tridonic: Fix bus traffic dumping
Browse files Browse the repository at this point in the history
I have more than one control device, which is why the
`examples/async-dalitest.py` hits a framing error when checking if there
are any control devices connected. When the bus_watch feature is
enabled, this hit a Python error due to some incomplete
rename/refactoring where this single occurrence was not changed by
mistake.

Fixes: c72374c ("Update the async Tridonic DALI-USB driver to work with 24-bit frames")
  • Loading branch information
jktjkt committed Apr 23, 2023
1 parent 4548d26 commit 6d45aad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dali/driver/hid.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ async def _bus_watch(self):
frame = dali.frame.BackwardFrame(raw_frame)
elif rtype == self._RESPONSE_NO_FRAME:
frame = "no"
elif rtype == self._RESPONSE_BUS_STATUS \
elif rtype == self._RESPONSE_INFO \
and message[5] == self._BUS_STATUS_FRAMING_ERROR:
frame = dali.frame.BackwardFrameError(255)
else:
Expand Down

0 comments on commit 6d45aad

Please sign in to comment.