forked from PAWPAW-Mirror/lib_xua
Mask Alt settings value before sending to iAP EA Native code (clean up short sent via channel)
This commit is contained in:
@@ -346,7 +346,8 @@ void Endpoint0(chanend c_ep0_out, chanend c_ep0_in, chanend c_audioControl,
|
|||||||
//TODO g_eaNativeTransportAlt = sp.wValue;?
|
//TODO g_eaNativeTransportAlt = sp.wValue;?
|
||||||
|
|
||||||
/* Send selected Alt interface number onto EA Native EP manager */
|
/* Send selected Alt interface number onto EA Native EP manager */
|
||||||
outuint(c_EANativeTransport_ctrl, sp.wValue);
|
unsigned int altSetting = (0x0000FFFF & sp.wValue); // sp.wValue is an unsigned short
|
||||||
|
outuint(c_EANativeTransport_ctrl, altSetting);
|
||||||
|
|
||||||
/* Handshake */
|
/* Handshake */
|
||||||
chkct(c_EANativeTransport_ctrl, XS1_CT_END);
|
chkct(c_EANativeTransport_ctrl, XS1_CT_END);
|
||||||
|
|||||||
Reference in New Issue
Block a user