Skip to content

Commit

Permalink
#35 Remove uwb_address property
Browse files Browse the repository at this point in the history
The uwb_address property has been removed because the information is
now provided by the system_info property.
  • Loading branch information
adamlm committed Jul 1, 2023
1 parent 515797a commit 88fc3d7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
13 changes: 0 additions & 13 deletions dwm1001.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,19 +83,6 @@ def system_info(self) -> SystemInfo:

return SystemInfo.from_string(response)

@property
def uwb_address(self) -> TagId:
self.send_shell_command(ShellCommand.SI)

response = self.get_shell_response().splitlines()

# System info response has several lines, but we only care about the address
address_line = response[1]
address_text_start = address_line.find("addr=")
address_string = address_line[address_text_start:].strip()

return TagId("0" + address_string.removeprefix("addr="))

def send_shell_command(self, command: ShellCommand) -> None:
self.serial_handle.write(command.value)
self.serial_handle.write(ShellCommand.ENTER.value)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "pydwm1001"
version = "0.11.0"
version = "0.12.0"
authors = [
{ name="Adam Morrissett", email="morrissettal2@vcu.edu" },
]
Expand Down

0 comments on commit 88fc3d7

Please sign in to comment.