summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-12-14 14:20:47 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-12-14 14:20:47 -0600
commitf5c5034845294382b831b096670efe64fa26e18c (patch)
tree2bf8b86a35fccd5da091031845097a0a6fa5852f /apps
parentd88c3339f95daa0f203bfcaa1a9beb31a8228be0 (diff)
downloadnuttx-f5c5034845294382b831b096670efe64fa26e18c.tar.gz
nuttx-f5c5034845294382b831b096670efe64fa26e18c.tar.bz2
nuttx-f5c5034845294382b831b096670efe64fa26e18c.zip
Fix door open detection
Diffstat (limited to 'apps')
-rw-r--r--apps/graphics/traveler/src/trv_input.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/graphics/traveler/src/trv_input.c b/apps/graphics/traveler/src/trv_input.c
index 9d9d5435b..15b41ad4f 100644
--- a/apps/graphics/traveler/src/trv_input.c
+++ b/apps/graphics/traveler/src/trv_input.c
@@ -599,8 +599,7 @@ void trv_input_read(void)
}
}
- g_trv_input.dooropen = ((sample.as_buttons & AJOY_BUTTON_SELECT) != 0);
-
+ g_trv_input.dooropen = ((sample.as_buttons & AJOY_BUTTON_SELECT_BIT) != 0);
#elif defined(CONFIG_GRAPHICS_TRAVELER_DJOYSTICK)
struct djoy_buttonset_t buttonset;
@@ -727,7 +726,7 @@ void trv_input_read(void)
break;
}
- g_trv_input.dooropen = ((buttonset & DJOY_BUTTON_SELECT) != 0);
+ g_trv_input.dooropen = ((buttonset & DJOY_BUTTON_SELECT_BIT) != 0);
#endif /* CONFIG_GRAPHICS_TRAVELER_DJOYSTICK */
#elif defined(CONFIG_GRAPHICS_TRAVELER_NX_XYINPUT)