From 74496a947eef42b416a8a0cb11b7415ac6fa103b Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Wed, 1 Apr 2009 05:38:43 +0000 Subject: [PATCH] Fixed incorrect defined in Version.h. Fixed Still Image Host SImage_SendData() function not clearing the pipe bank after sending data. --- Demos/Host/StillImageHost/StillImageCommands.c | 3 +++ LUFA/ChangeLog.txt | 1 + LUFA/Version.h | 4 ++-- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Demos/Host/StillImageHost/StillImageCommands.c b/Demos/Host/StillImageHost/StillImageCommands.c index 969ff5af68..4d4c0b1705 100644 --- a/Demos/Host/StillImageHost/StillImageCommands.c +++ b/Demos/Host/StillImageHost/StillImageCommands.c @@ -202,6 +202,9 @@ void SImage_SendData(void* Buffer, uint16_t Bytes) /* Write the data contents to the pipe */ Pipe_Write_Stream_LE(Buffer, Bytes); + /* Send the last packet to the attached device */ + Pipe_ClearCurrentBank(); + /* Freeze the pipe again after use */ Pipe_Freeze(); } diff --git a/LUFA/ChangeLog.txt b/LUFA/ChangeLog.txt index de0e5abde4..72bcfee227 100644 --- a/LUFA/ChangeLog.txt +++ b/LUFA/ChangeLog.txt @@ -45,6 +45,7 @@ * - Fixed USBTask.h not conditionally including HostChapter9.h only when USB_CAN_BE_HOST is defined (thanks to Ian Gregg) * - Fixed incorrect ADC driver init register manipulation (thanks to Tobias) * - Added new GenericHID device demo application + * - Fixed Still Image Host SImage_SendData() function not clearing the pipe bank after sending data * * * \section Sec_ChangeLog090209 Version 090209 diff --git a/LUFA/Version.h b/LUFA/Version.h index f36c40a92d..f1e3b1ed9c 100644 --- a/LUFA/Version.h +++ b/LUFA/Version.h @@ -41,9 +41,9 @@ /* Public Interface - May be used in end-application: */ /* Macros: */ /** Indicates the version number of the library, as an integer. */ - #define LUFA_VERSION_INTEGER 000000 + #define LUFA_VERSION_INTEGER 090401 /** Indicates the version number of the library, as a string. */ - #define LUFA_VERSION_STRING "000000" + #define LUFA_VERSION_STRING "090401" #endif