diff options
author | Daniel Friesel <derf@finalrewind.org> | 2021-10-03 15:58:02 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2021-10-03 15:58:02 +0200 |
commit | 8bf5a6743489441a0ffb6060a78b3c34ad56cff7 (patch) | |
tree | e8bc0355a8c5868a51bf2587970547ca7944ebbc /src/arch/msp430fr5994lp | |
parent | 018e6617666c322b16359608842907c9b8c3e91c (diff) |
MSP430FR SPI: _really_ support 16-bit length indicators
Diffstat (limited to 'src/arch/msp430fr5994lp')
-rw-r--r-- | src/arch/msp430fr5994lp/driver/spi.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/arch/msp430fr5994lp/driver/spi.cc b/src/arch/msp430fr5994lp/driver/spi.cc index 9659ec0..3d5ee61 100644 --- a/src/arch/msp430fr5994lp/driver/spi.cc +++ b/src/arch/msp430fr5994lp/driver/spi.cc @@ -57,8 +57,8 @@ signed char SPI::xmit(unsigned int tx_len, unsigned char *tx_buf, UCB1IFG &= ~UCRXIFG; UCB1TXBUF = tx_buf[0]; - unsigned char tx_pos = 1; - unsigned char rx_pos = 0; + unsigned int tx_pos = 1; + unsigned int rx_pos = 0; while (tx_pos < tx_len || rx_pos < rx_len) { if ((tx_pos < tx_len) && (UCB1IFG & UCTXIFG)) { |