From 44bbfeb0a5d5bfd8f17dbf6c369ee4678c3ba3bc Mon Sep 17 00:00:00 2001 From: Chris Kuethe Date: Mon, 5 Feb 2024 20:56:37 -0800 Subject: [PATCH] trim trailing NUL character My devices currently report a build date of "Jan 25 2024 14:49:00\x00" which is a bit ugly. Trim the trailing NUL, just to make it prettier. --- radiacode/radiacode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radiacode/radiacode.py b/radiacode/radiacode.py index f2806af..02a5814 100644 --- a/radiacode/radiacode.py +++ b/radiacode/radiacode.py @@ -113,7 +113,7 @@ def fw_version(self) -> tuple[tuple[int, int, str], tuple[int, int, str]]: target_minor, target_major = r.unpack(' str: r = self.execute(b'\x0b\x00')