aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/Host/ClassDriver/StillImageHost
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2009-09-06 04:15:35 +0000
committerDean Camera <dean@fourwalledcubicle.com>2009-09-06 04:15:35 +0000
commit064e6a2f32719da5b7ed2ff3a8a32c5788e753d0 (patch)
tree1445c628dbba4a44b983a6856203a79fc597554f /Demos/Host/ClassDriver/StillImageHost
parent6783bc4594177833d2b1047d77316e38cfe6a629 (diff)
downloadlufa-064e6a2f32719da5b7ed2ff3a8a32c5788e753d0.tar.gz
lufa-064e6a2f32719da5b7ed2ff3a8a32c5788e753d0.tar.bz2
lufa-064e6a2f32719da5b7ed2ff3a8a32c5788e753d0.zip
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.
Diffstat (limited to 'Demos/Host/ClassDriver/StillImageHost')
-rw-r--r--Demos/Host/ClassDriver/StillImageHost/StillImageHost.c6
1 files changed, 4 insertions, 2 deletions
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;