Skip to content

Commit

Permalink
fix: correct response to reply
Browse files Browse the repository at this point in the history
  • Loading branch information
electricbubble committed Apr 28, 2021
1 parent 1d8d49c commit 397fe3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tidevice/_instruments.py
Expand Up @@ -520,8 +520,8 @@ def _reply_null(self, m: DTXMessage):
def _handle_dtx_message(self, m: DTXMessage) -> bool:
# logger.warning("Callback: identifier: %s", m.result) # TODO

if m.channel_id == 0xFFFFFFFF and m.flags == 0x05:
return self._reply_null(m)
if m.header.expects_reply == 1:
self._reply_null(m)

if m.flags == 0x02:
identifier, args = m.result
Expand Down

0 comments on commit 397fe3b

Please sign in to comment.