diff options
author | Christian Pointner <equinox@spreadspace.org> | 2012-05-30 19:09:50 +0000 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2012-05-30 19:09:50 +0000 |
commit | e002aabba96128520484296cbf2ac9453fba7f4f (patch) | |
tree | 04a2431886b9614ebec3eab63bbcace402ffaef9 /usb-spi/usb-spi.c | |
parent | cleanup (diff) |
fixed ring buffer error
git-svn-id: https://svn.spreadspace.org/avr/trunk@52 aa12f405-d877-488e-9caf-2d797e2a1cc7
Diffstat (limited to 'usb-spi/usb-spi.c')
-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;
}
}
|