mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-10-06 21:55:13 +00:00
Fix door open detection
This commit is contained in:
parent
be1611fbc4
commit
c830d84835
1 changed files with 2 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue