g_hidData[] reset before calling ReadHIDButtons()

This commit is contained in:
Ross Owen
2013-05-10 16:19:43 +01:00
parent 3b8effc24a
commit ce9a112def

View File

@@ -592,6 +592,7 @@ void buffer(register chanend c_aud_out, register chanend c_aud_in, chanend c_aud
/* HID Report Data */ /* HID Report Data */
case XUD_SetData_Select(c_hid, ep_hid, tmp): case XUD_SetData_Select(c_hid, ep_hid, tmp):
{ {
g_hidData[0]=0;
Vendor_ReadHIDButtons(g_hidData); Vendor_ReadHIDButtons(g_hidData);
XUD_SetReady_In(ep_hid, g_hidData, 1); XUD_SetReady_In(ep_hid, g_hidData, 1);
} }