Minor documentation improvements. Remove AS4 project generator script as it is buggy...
[pub/USBasp.git] / Demos / Host / LowLevel / PrinterHost / PrinterHost.c
index 59e239e..b5f5a0d 100644 (file)
@@ -1,13 +1,13 @@
 /*
              LUFA Library
-     Copyright (C) Dean Camera, 2011.
+     Copyright (C) Dean Camera, 2012.
 
   dean [at] fourwalledcubicle [dot] com
            www.lufa-lib.org
 */
 
 /*
-  Copyright 2011  Dean Camera (dean [at] fourwalledcubicle [dot] com)
+  Copyright 2012  Dean Camera (dean [at] fourwalledcubicle [dot] com)
 
   Permission to use, copy, modify, distribute, and sell this
   software and its documentation for any purpose is hereby granted
@@ -43,10 +43,10 @@ int main(void)
 {
        SetupHardware();
 
-       LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
-
        puts_P(PSTR(ESC_FG_CYAN "Printer Host Demo running.\r\n" ESC_FG_WHITE));
-       sei();
+
+       LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
+       GlobalInterruptEnable();
 
        for (;;)
        {
@@ -218,7 +218,7 @@ void PrinterHost_Task(void)
        puts_P(PSTR("Test Page Sent.\r\n"));
 
        /* Indicate device no longer busy */
-       LEDs_SetAllLEDs(LEDMASK_USB_READY);     
+       LEDs_SetAllLEDs(LEDMASK_USB_READY);
        USB_Host_SetDeviceConfiguration(0);
 }