Gigabeat S: Make sure the hold button on the remote is independent of the main one.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19833 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Sevakis 2009-01-23 22:45:33 +00:00
parent f881672411
commit ef8413eb4f

View file

@ -150,8 +150,14 @@ int button_read_device(void)
* first key down event. */
KPP_KPSR |= KPP_KPSR_KDIE;
/* If hold, ignore any pressed button */
#ifdef HAVE_HEADPHONE_DETECTION
/* If hold, ignore any pressed button. Remote has its own hold
* switch, so return state regardless. */
return hold_button ? (int_btn & BUTTON_REMOTE) : int_btn;
#else
/* If hold, ignore any pressed button. */
return hold_button ? BUTTON_NONE : int_btn;
#endif
}
/* This is called from the mc13783 interrupt thread */