Fixes to get the discrete joystick driver and test working

This commit is contained in:
Gregory Nutt 2014-11-28 15:56:18 -06:00
parent 3f010b1905
commit 62cb2f3c06

@ -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);