From 9e06420016ae04c5e49f119124666812eb1e70d1 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 28 Nov 2014 15:56:18 -0600 Subject: Fixes to get the discrete joystick driver and test working --- apps/examples/djoystick/djoy_main.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'apps/examples') diff --git a/apps/examples/djoystick/djoy_main.c b/apps/examples/djoystick/djoy_main.c index ee4b83e85..7a7a74d51 100644 --- a/apps/examples/djoystick/djoy_main.c +++ b/apps/examples/djoystick/djoy_main.c @@ -152,6 +152,10 @@ int djoy_main(int argc, char *argv[]) int ret; int err = EXIT_FAILURE; + /* Reset some globals that might been been left in a bad state */ + + g_djoylast = 0; + /* Open the djoystick device */ fd = open(CONFIG_EXAMPLES_DJOYSTICK_DEVNAME, O_RDONLY); -- cgit v1.2.3