From 064e6a2f32719da5b7ed2ff3a8a32c5788e753d0 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Sun, 6 Sep 2009 04:15:35 +0000 Subject: Changed Still Image Host class driver to auto-fill TransactionID element of sent headers depending on the current session state. CDC based demos and project now work under 64 bit versions of Windows (thanks to Ronny Hanson, Thomas Bleeker). The Benito Programmer project now has its own unique VID/PID pair allocated from the Atmel donated LUFA VID/PID pool. --- Demos/Host/ClassDriver/StillImageHost/StillImageHost.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Demos/Host/ClassDriver/StillImageHost') diff --git a/Demos/Host/ClassDriver/StillImageHost/StillImageHost.c b/Demos/Host/ClassDriver/StillImageHost/StillImageHost.c index d60db097b..ef073abd5 100644 --- a/Demos/Host/ClassDriver/StillImageHost/StillImageHost.c +++ b/Demos/Host/ClassDriver/StillImageHost/StillImageHost.c @@ -110,6 +110,10 @@ int main(void) break; } + printf("Turning off Device...\r\n"); + SImage_Host_SendCommand(&DigitalCamera_SI_Interface, 0x1013, 0, 0, 0, 0, NULL); + printf("Device Off.\r\n"); + printf("Closing Session...\r\n"); if (SImage_Host_CloseSession(&DigitalCamera_SI_Interface) != PIPE_RWSTREAM_NoError) @@ -119,8 +123,6 @@ int main(void) break; } - printf("Device Idle.\r\n"); - LEDs_SetAllLEDs(LEDMASK_USB_READY); USB_HostState = HOST_STATE_WaitForDeviceRemoval; break; -- cgit v1.2.3