From 02b89c4bad5c43acfb11f4408e8743f05c0987e3 Mon Sep 17 00:00:00 2001 From: Franz Haas Date: Sat, 14 Dec 2024 19:52:27 +0100 Subject: [PATCH] - added doc strings --- atests/nfc_nci/nci_interface.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/atests/nfc_nci/nci_interface.py b/atests/nfc_nci/nci_interface.py index b1e57c1..08937b4 100644 --- a/atests/nfc_nci/nci_interface.py +++ b/atests/nfc_nci/nci_interface.py @@ -43,8 +43,16 @@ def close_nci_connection(self): raise Exception("NCI connection is not open") def nci_connection_receive_buffer_should_be_empty(self): + """ + Verifies that the receive buffer is empty. + """ assert 0 == self._serial_connection.in_waiting def empty_nci_connection_receive_buffer(self): + """ + Empties the receive buffer. + + (This is necessary because the HW reset has not been implemented) + """ while self._serial_connection.in_waiting: self._serial_connection.read(self._serial_connection.in_waiting)