Skip to content

Commit

Permalink
#58 - fixed card status decode_status() function bug
Browse files Browse the repository at this point in the history
  • Loading branch information
crnbaker committed Jun 3, 2024
1 parent 540218e commit a207654
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/spectrumdevice/settings/status.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,4 @@ class StatusCode(Enum):
def decode_status(code: int) -> CARD_STATUS_TYPE:
"""Converts the integer value received by a card when queried about its status to a list of StatusCodes."""
possible_codes = [code.value for code in StatusCode]
return CARD_STATUS_TYPE(
[StatusCode(found_code) for found_code in decode_bitmap_using_list_of_ints(code, possible_codes)]
)
return [StatusCode(found_code) for found_code in decode_bitmap_using_list_of_ints(code, possible_codes)]

0 comments on commit a207654

Please sign in to comment.