I hate this kind of bugs :(

This commit is contained in:
Mats van Reenen 2020-05-27 11:47:04 +02:00
parent 1e2b9ce3ad
commit ed96788e88

2
SPI.c
View File

@ -78,7 +78,7 @@ void SPISend(){
while(UCB0STAT & UCBUSY); // wait for SPI TX/RX to finish
// save recieved data
SPI_packet[SPI_packetC] = UCA0RXIFG;
SPI_packet[SPI_packetC] = UCA0RXBUF;
// increase counter for next byte
SPI_packetC++;