Move StdRequestType.h, StreamCallbacks.h, USBMode.h from the LowLevel USB driver...
[pub/USBasp.git] / Demos / Host / StillImageHost / StillImageCommands.c
index 969ff5a..be6f748 100644 (file)
@@ -111,7 +111,7 @@ uint8_t SImage_RecieveBlockHeader(void)
                /* Check to see if a new frame has been issued (1ms elapsed) */\r
                if (USB_INT_HasOccurred(USB_INT_HSOFI))\r
                {\r
-                       /* Clear the flag and decrement the timout period counter */\r
+                       /* Clear the flag and decrement the timeout period counter */\r
                        USB_INT_Clear(USB_INT_HSOFI);\r
                        TimeoutMSRem--;\r
 \r
@@ -202,6 +202,9 @@ void SImage_SendData(void* Buffer, uint16_t Bytes)
        /* Write the data contents to the pipe */\r
        Pipe_Write_Stream_LE(Buffer, Bytes);\r
 \r
+       /* Send the last packet to the attached device */\r
+       Pipe_ClearCurrentBank();\r
+\r
        /* Freeze the pipe again after use */\r
        Pipe_Freeze();\r
 }\r