Skip to content

Commit

Permalink
check for existance of data on both win and linux paths
Browse files Browse the repository at this point in the history
  • Loading branch information
franzhaas committed Dec 18, 2024
1 parent f27be06 commit 72965be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion atests/nfc/nfc_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def wait_for_data_from_nfc(self, timeout: float = 1.0):
endTime = time.time() + timeout
while time.time() < endTime and not self._serial_connection.in_waiting:
time.sleep(0.001)
assert self._serial_connection.in_waiting, "Timeout while waiting for data from NFC device"
assert self._serial_connection.in_waiting, "Timeout while waiting for data from NFC device"
else:
raise Exception("NFC connection is not open")

Expand Down

0 comments on commit 72965be

Please sign in to comment.