summaryrefslogtreecommitdiff
path: root/spi/nrf24l01/gen-testfiles.py
diff options
context:
space:
mode:
Diffstat (limited to 'spi/nrf24l01/gen-testfiles.py')
-rwxr-xr-xspi/nrf24l01/gen-testfiles.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/spi/nrf24l01/gen-testfiles.py b/spi/nrf24l01/gen-testfiles.py
index 5b14e43..6377539 100755
--- a/spi/nrf24l01/gen-testfiles.py
+++ b/spi/nrf24l01/gen-testfiles.py
@@ -187,3 +187,12 @@ for i in range(5):
spi.add(i, 0x00)
spi.CShigh()
spi.write()
+
+spi = SPI('nrf24l01-test-incomplete-cmd')
+spi.add(0xff, 0xff) # some bytes from a command
+spi.add(0xff, 0xff) # that was captured incompletely
+spi.CShigh()
+spi.CSlow()
+spi.add(0xe1, 0x00) # FLUSH_TX
+spi.CShigh()
+spi.write()