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:
@@ -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)
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user