mirror of
https://git.code.sf.net/p/newrpl/sources
synced 2024-11-16 19:51:25 +01:00
Send zero-length HID reports when no data.
This commit is contained in:
parent
47f428904a
commit
62f94e71e4
1 changed files with 6 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue