diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-11-28 15:56:18 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-11-28 15:56:18 -0600 |
commit | 9e06420016ae04c5e49f119124666812eb1e70d1 (patch) | |
tree | 6524307a6901953235d016af2546c54f4ef37e09 /apps | |
parent | c4236a2deb7838058bef13c9c048dc83c2329ba8 (diff) | |
download | nuttx-9e06420016ae04c5e49f119124666812eb1e70d1.tar.gz nuttx-9e06420016ae04c5e49f119124666812eb1e70d1.tar.bz2 nuttx-9e06420016ae04c5e49f119124666812eb1e70d1.zip |
Fixes to get the discrete joystick driver and test working
Diffstat (limited to 'apps')
-rw-r--r-- | apps/examples/djoystick/djoy_main.c | 4 |
1 files changed, 4 insertions, 0 deletions
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); |