Fixed PrinterHost demo Printer_GetDeviceID() routine not removing the Device ID strin...
[pub/USBasp.git] / Demos / Host / Incomplete / PrinterHost / PrinterHost.c
index d9f409e..79e6f9e 100644 (file)
@@ -180,7 +180,7 @@ void USB_Printer_Host(void)
                case HOST_STATE_Configured:\r
                        puts_P(PSTR("Retrieving Device ID...\r\n"));\r
                \r
-                       char DeviceIDString[128];\r
+                       char DeviceIDString[256];\r
                        if ((ErrorCode = Printer_GetDeviceID(DeviceIDString, sizeof(DeviceIDString))) != HOST_SENDCONTROL_Successful)\r
                        {\r
                                puts_P(PSTR(ESC_FG_RED "Control Error (Get DeviceID).\r\n"));\r
@@ -206,8 +206,8 @@ void USB_Printer_Host(void)
                \r
                        Printer_Data_t TestPageData =\r
                                {\r
-                                       "\033%-12345X\033E LUFA PCL Test Page \033E\033%-12345X",\r
-//                                     "\033@\033i\001\033X\001\060\000\r\nLUFA ESCP/2 Test Page\r\n",\r
+//                                     "\033%-12345X\033E LUFA PCL Test Page \033E\033%-12345X",\r
+                                       "\033@\033i\001\033X\001\060\000\r\nLUFA ESCP/2 Test Page\r\n",\r
                                        (sizeof(TestPageData.Data) - 1)\r
                                };\r
                \r