aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/Host
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2009-04-01 05:38:43 +0000
committerDean Camera <dean@fourwalledcubicle.com>2009-04-01 05:38:43 +0000
commit74496a947eef42b416a8a0cb11b7415ac6fa103b (patch)
tree4e241d8e9e4e9f21ad0f000cc10d98520bff9a0a /Demos/Host
parentfa85c5e4169c27cb76c24e89cab63c2b062739c4 (diff)
downloadlufa-74496a947eef42b416a8a0cb11b7415ac6fa103b.tar.gz
lufa-74496a947eef42b416a8a0cb11b7415ac6fa103b.tar.bz2
lufa-74496a947eef42b416a8a0cb11b7415ac6fa103b.zip
Fixed incorrect defined in Version.h.
Fixed Still Image Host SImage_SendData() function not clearing the pipe bank after sending data.
Diffstat (limited to 'Demos/Host')
-rw-r--r--Demos/Host/StillImageHost/StillImageCommands.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Demos/Host/StillImageHost/StillImageCommands.c b/Demos/Host/StillImageHost/StillImageCommands.c
index 969ff5af6..4d4c0b170 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();
}