diff options
Diffstat (limited to 'usb-spi')
-rw-r--r-- | usb-spi/usb-spi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usb-spi/usb-spi.c b/usb-spi/usb-spi.c index 2dbb376..1dc438c 100644 --- a/usb-spi/usb-spi.c +++ b/usb-spi/usb-spi.c @@ -137,7 +137,7 @@ void SPI_TransferBuffer() uint8_t ReceivedByte = SPI_TransferByte(RingBuffer_Remove(&USBtoSPI_Buffer));
if (USB_DeviceState == DEVICE_STATE_Configured) {
RingBuffer_Insert(&SPItoUSB_Buffer, ReceivedByte);
- if(RingBuffer_IsFull(&USBtoSPI_Buffer))
+ if(RingBuffer_IsFull(&SPItoUSB_Buffer))
break;
}
}
|