Finish Still Image Host class driver.

This commit is contained in:
Dean Camera 2009-09-09 04:18:37 +00:00
parent 6f993a2f75
commit d2068d878c
5 changed files with 113 additions and 22 deletions

View file

@ -111,7 +111,15 @@ int main(void)
}
printf("Turning off Device...\r\n");
SImage_Host_SendCommand(&DigitalCamera_SI_Interface, 0x1013, 0, 0, 0, 0, NULL);
SImage_Host_SendCommand(&DigitalCamera_SI_Interface, 0x1013, 0, NULL);
if (SImage_Host_ReceiveResponse(&DigitalCamera_SI_Interface))
{
printf("Could not turn off device.\r\n");
USB_HostState = HOST_STATE_WaitForDeviceRemoval;
break;
}
printf("Device Off.\r\n");
printf("Closing Session...\r\n");