Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zigpy serial protocol #177

Merged
merged 7 commits into from
Oct 28, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Use correct data type when clearing buffer
  • Loading branch information
puddly committed Oct 28, 2024
commit 2df97b76ec52fc6c931ef998707c077229572c3e
3 changes: 2 additions & 1 deletion zigpy_xbee/uart.py
Original file line number Diff line number Diff line change
@@ -79,7 +79,8 @@ def data_received(self, data):
break
self.frame_received(frame)
if self._in_command_mode and self._buffer[-1:] == b"\r":
rsp, self._buffer = (self._buffer[:-1], b"")
rsp = self._buffer[:-1]
self._buffer.clear()
self.command_mode_rsp(rsp)

def frame_received(self, frame):