mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-10-07 22:25:12 +00:00
Fixes to get the discrete joystick driver and test working
This commit is contained in:
parent
3f010b1905
commit
62cb2f3c06
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue