Skip to content

Commit

Permalink
usb: Fix parsing of unexpected TBS USB Rx logs
Browse files Browse the repository at this point in the history
  • Loading branch information
blockstreamsatellite committed Jul 12, 2023
1 parent d82daa7 commit 34dbb81
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ Release Date: 2023-07-12
- TBS driver compilation with Linux kernel 6.0+ on Fedora 37 and 38.
- Fix Netplan configuration with NetworkManager renderer.
- Fix `firewall-cmd` output parsing when configuring the firewall.
- Fix parsing of TBS USB receiver logs breaking with unexpected metrics.

### Removed
- Dependency on `sseclient-py`.
Expand Down
3 changes: 3 additions & 0 deletions blocksatcli/usb.py
Original file line number Diff line number Diff line change
Expand Up @@ -888,6 +888,9 @@ def _parse_log(line):
key = elem[:-1]
raw_value = elements[i + 1]

if key not in log_key_map:
continue # unexpected key

# Convert key to the nomenclature adopted on monitor.py
key = log_key_map[key]

Expand Down

0 comments on commit 34dbb81

Please sign in to comment.