git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Changes to the module loader to handle specific errors from modules
[tpg/acess2.git]
/
Modules
/
USB
/
usb.c
diff --git
a/Modules/USB/usb.c
b/Modules/USB/usb.c
index
4663ce2
..
934136a
100644
(file)
--- a/
Modules/USB/usb.c
+++ b/
Modules/USB/usb.c
@@
-15,9
+15,9
@@
void USB_MakeToken(void *Buf, int PID, int Addr, int EndP)
Uint8 *tok = Buf;
int crc = 0; //USB_TokenCRC();
- tok[0] = PID;
- tok[1] =
Addr
| ((EndP&1)<<7);
- tok[2] = (
EndP >> 1
) | crc;
+ tok[0] = PID
& 0xFF
;
+ tok[1] =
(Addr & 0x7F)
| ((EndP&1)<<7);
+ tok[2] = (
(EndP >> 1) & 0x7
) | crc;
}
#if 0
UCC
git Repository :: git.ucc.asn.au