Add explicit guards to all device mode tasks to ensure the device is connected and configured before running the task, to prevent any user tasks from locking up the main USB task if the device has not been properly configured.

This commit is contained in:
Dean Camera committed 2009-07-21 02:48:41 +00:00
1 parent bf50959b80
commit 67f390fe74
19 files changed
+245 -216

No files matched your search

@@ -226,7 +226,7 @@ void USB_Printer_Host(void)
Printer_Data_t TestPageData =
{
"\033%-12345X\033E LUFA PCL Test Page \033E\033%-12345X",
"\033%-12345X\033E" "LUFA PCL Test Page" "\033E\033%-12345X",
(sizeof(TestPageData.Data) - 1)
};