aboutsummaryrefslogtreecommitdiff
path: root/Demos/Host/ClassDriver/StillImageHost/StillImageHost.c
diff options
context:
space:
mode:
authorDean Camera <[email protected]>2009-09-06 04:15:35 +0000
committerDean Camera <[email protected]>2009-09-06 04:15:35 +0000
commit064e6a2f32719da5b7ed2ff3a8a32c5788e753d0 (patch)
tree1445c628dbba4a44b983a6856203a79fc597554f /Demos/Host/ClassDriver/StillImageHost/StillImageHost.c
parent6783bc4594177833d2b1047d77316e38cfe6a629 (diff)
downloadqmk_firmware-064e6a2f32719da5b7ed2ff3a8a32c5788e753d0.tar.gz
qmk_firmware-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/StillImageHost.c')
-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 d60db097be..ef073abd51 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;