Fixed incorrect comparison in the descriptor callback routine of the TeensyHID bootlo...
[pub/USBasp.git] / Projects / MissileLauncher / MissileLauncher.c
index 9b76dfb..cb0bd85 100644 (file)
@@ -1,6 +1,6 @@
 /*\r
          USB Missile Launcher Demo\r
 /*\r
          USB Missile Launcher Demo\r
-        Copyright (C) Dave Fletcher, 2009.\r
+        Copyright (C) Dave Fletcher, 2010.\r
          fletch at fletchtronics dot net\r
          \r
         Based on research by Scott Weston at\r
          fletch at fletchtronics dot net\r
          \r
         Based on research by Scott Weston at\r
@@ -8,8 +8,8 @@
  */\r
 \r
 /*\r
  */\r
 \r
 /*\r
-  Copyright 2009  Dean Camera (dean [at] fourwalledcubicle [dot] com)\r
-  Copyright 2009  Dave Fletcher (fletch [at] fletchtronics [dot] net)\r
+  Copyright 2010  Dean Camera (dean [at] fourwalledcubicle [dot] com)\r
+  Copyright 2010  Dave Fletcher (fletch [at] fletchtronics [dot] net)\r
 \r
   Permission to use, copy, modify, distribute, and sell this \r
   software and its documentation for any purpose is hereby granted\r
 \r
   Permission to use, copy, modify, distribute, and sell this \r
   software and its documentation for any purpose is hereby granted\r
@@ -95,10 +95,11 @@ int main(void)
 {\r
        SetupHardware();\r
 \r
 {\r
        SetupHardware();\r
 \r
-       LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);\r
-       \r
        CmdState = CMD_STOP;\r
 \r
        CmdState = CMD_STOP;\r
 \r
+       LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);\r
+       sei();\r
+\r
        for (;;)\r
        {\r
                Read_Joystick_Status();\r
        for (;;)\r
        {\r
                Read_Joystick_Status();\r