Fix unfinished printer host demo - some printer languages use embedded NULLs and...
[pub/USBasp.git] / Demos / Host / Incomplete / PrinterHost / PrinterHost.h
index 191cd7f..5851349 100644 (file)
@@ -37,6 +37,7 @@
                #include <avr/pgmspace.h>\r
                #include <avr/power.h>\r
                #include <stdio.h>\r
                #include <avr/pgmspace.h>\r
                #include <avr/power.h>\r
                #include <stdio.h>\r
+               #include <string.h>\r
 \r
                #include "ConfigDescriptor.h"\r
                #include "Lib/PrinterCommands.h"\r
 \r
                #include "ConfigDescriptor.h"\r
                #include "Lib/PrinterCommands.h"\r
@@ -60,8 +61,8 @@
                /** LED mask for the library LED driver, to indicate that an error has occurred in the USB interface. */\r
                #define LEDMASK_USB_ERROR        (LEDS_LED1 | LEDS_LED3)\r
        \r
                /** LED mask for the library LED driver, to indicate that an error has occurred in the USB interface. */\r
                #define LEDMASK_USB_ERROR        (LEDS_LED1 | LEDS_LED3)\r
        \r
-       /* External Variables: */\r
-               extern uint8_t PrinterProtocol;\r
+               /** LED mask for the library LED driver, to indicate that the USB interface is busy. */\r
+               #define LEDMASK_USB_BUSY         (LEDS_LED2)\r
        \r
        /* Function Prototypes: */\r
                void EVENT_USB_DeviceAttached(void);\r
        \r
        /* Function Prototypes: */\r
                void EVENT_USB_DeviceAttached(void);\r