Fix build errors in Joystick device demo and library LEDs driver (on *nix systems).
[pub/USBasp.git] / Demos / Device / Joystick / Joystick.c
index cf136d0..e1faeed 100644 (file)
@@ -154,6 +154,7 @@ EVENT_HANDLER(USB_UnhandledControlPacket)
 bool GetNextReport(USB_JoystickReport_Data_t* ReportData)\r
 {\r
        static uint8_t PrevJoyStatus    = 0;\r
+       static uint8_t PrevButtonStatus = 0;\r
        uint8_t        JoyStatus_LCL    = Joystick_GetStatus();\r
        uint8_t        ButtonStatus_LCL = Buttons_GetStatus();\r
        bool           InputChanged     = false;\r