mirror of
https://github.com/lowobservable/coax.git
synced 2026-02-27 09:28:56 +00:00
Fix error handling when getting interface features
This commit is contained in:
@@ -89,7 +89,7 @@ class SerialInterface(Interface):
|
||||
message = self._read_message()
|
||||
|
||||
if message[0] != 0x01:
|
||||
return _convert_error(message)
|
||||
raise _convert_error(message)
|
||||
|
||||
known_feature_values = {feature.value for feature in InterfaceFeature}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user