From e38527e489ca652884edcb438ec797d32ebeadb8 Mon Sep 17 00:00:00 2001 From: bruce Date: Wed, 7 Apr 2021 10:46:44 +1000 Subject: [PATCH] spi.py:fix spi model_0 for read. data shift at negedge, sample at posedge. --- pyftdi/spi.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyftdi/spi.py b/pyftdi/spi.py index 35c3274e..dc75259b 100644 --- a/pyftdi/spi.py +++ b/pyftdi/spi.py @@ -819,18 +819,18 @@ def _exchange_half_duplex(self, frequency: float, cmd.extend(write_cmd) if readlen: if not droptail: - rcmd = (Ftdi.READ_BYTES_NVE_MSB if not cpol else + rcmd = (Ftdi.READ_BYTES_NVE_MSB if cpol else Ftdi.READ_BYTES_PVE_MSB) read_cmd = spack('