mirror of
https://github.com/brmlab/edubrm.git
synced 2025-06-08 04:43:59 +02:00
ignore cotrol packets
This commit is contained in:
parent
033b3961da
commit
ac9235a3f1
1 changed files with 9 additions and 6 deletions
|
@ -40,12 +40,15 @@ ROM ** rom = (ROM **)0x1fff1ff8;
|
|||
|
||||
void GetInReport (uint8_t src[], uint32_t length)
|
||||
{
|
||||
static int j = 0;
|
||||
int i;
|
||||
for (i = 0; i < INSIZE; ++i) {
|
||||
src[i] = 'A' + i + j;
|
||||
}
|
||||
if (++j>32) j = 0;
|
||||
int volatile reg = LPC_USB->CmdCode;
|
||||
if (!(reg & (5<<8))) {
|
||||
static int j = 0;
|
||||
int i;
|
||||
for (i = 0; i < INSIZE; ++i) {
|
||||
src[i] = 'A' + i + j;
|
||||
}
|
||||
if (++j>32) j = 0;
|
||||
}
|
||||
}
|
||||
|
||||
void SetOutReport (uint8_t dst[], uint32_t length)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue