aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/Device/Joystick/Joystick.c
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2009-05-07 06:33:07 +0000
committerDean Camera <dean@fourwalledcubicle.com>2009-05-07 06:33:07 +0000
commit938f86d06321c1a29cf87201000a9dae4e5a7c25 (patch)
treeeabdffa39480f379a0fa29497bed336f82f3e9ce /Demos/Device/Joystick/Joystick.c
parent526e398986583e2fb65c0a36a2fbf2ce153446e5 (diff)
downloadlufa-938f86d06321c1a29cf87201000a9dae4e5a7c25.tar.gz
lufa-938f86d06321c1a29cf87201000a9dae4e5a7c25.tar.bz2
lufa-938f86d06321c1a29cf87201000a9dae4e5a7c25.zip
Fix build errors in Joystick device demo and library LEDs driver (on *nix systems).
Diffstat (limited to 'Demos/Device/Joystick/Joystick.c')
-rw-r--r--Demos/Device/Joystick/Joystick.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Demos/Device/Joystick/Joystick.c b/Demos/Device/Joystick/Joystick.c
index cf136d076..e1faeede7 100644
--- a/Demos/Device/Joystick/Joystick.c
+++ b/Demos/Device/Joystick/Joystick.c
@@ -154,6 +154,7 @@ EVENT_HANDLER(USB_UnhandledControlPacket)
bool GetNextReport(USB_JoystickReport_Data_t* ReportData)
{
static uint8_t PrevJoyStatus = 0;
+ static uint8_t PrevButtonStatus = 0;
uint8_t JoyStatus_LCL = Joystick_GetStatus();
uint8_t ButtonStatus_LCL = Buttons_GetStatus();
bool InputChanged = false;