Send zero-length HID reports when no data.

This commit is contained in:
claudiol 2017-11-30 09:24:20 -05:00
parent 47f428904a
commit 62f94e71e4

View file

@ -1230,11 +1230,14 @@ void ep1_irqservice()
return;
}
// NOTHING TO TRANSMIT, STALL
// NOTHING TO TRANSMIT
if(*IN_CSR1_REG&EPn_IN_SENT_STALL) return; // ALREADY DONE
// JUST REPLY WITH A ZERO DATA PACKET
*IN_CSR1_REG|=EPn_IN_PKT_RDY;
*IN_CSR1_REG|=EPn_IN_SEND_STALL;
//if(*IN_CSR1_REG&EPn_IN_SENT_STALL) return; // ALREADY DONE
//*IN_CSR1_REG|=EPn_IN_SEND_STALL;
return;
}