Skip to content

Commit

Permalink
Handle unnamed spa #54
Browse files Browse the repository at this point in the history
  • Loading branch information
gazoodle committed Jan 13, 2025
1 parent caedfb1 commit 5d4f2b5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/geckolib/driver/protocol/hello.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ def handle(self, received_bytes: bytes, sender: tuple) -> None:
elif content.startswith(b"IOS") or content.startswith(b"AND"):
self._client_identifier = content

elif not content.find(b"|"):
self._spa_identifier = content
self._spa_name = "Unnamed SPA"

else:
self._spa_identifier, spa_name = content.split(b"|")
self._spa_name = spa_name.decode(GeckoConstants.MESSAGE_ENCODING)
Expand Down

0 comments on commit 5d4f2b5

Please sign in to comment.