summaryrefslogtreecommitdiff
path: root/pjrc/usb.c
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2012-03-04 01:12:35 +0900
committertmk <nobody@nowhere>2012-03-04 01:23:44 +0900
commit446f87f9e82e57fdc255cab3051a4b598fa4da75 (patch)
treeb0aa46d9dfad0b83d1386e7d2c8f686df08d8d49 /pjrc/usb.c
parente157aa7f91814864a75ecdb84188a443d63acc86 (diff)
Fiexed AT90USB162 compatibility.(different number of endpoint)
Diffstat (limited to 'pjrc/usb.c')
-rw-r--r--pjrc/usb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pjrc/usb.c b/pjrc/usb.c
index 20afc1b883..2b69b6a7fa 100644
--- a/pjrc/usb.c
+++ b/pjrc/usb.c
@@ -785,7 +785,7 @@ ISR(USB_COM_vect)
usb_configuration = wValue;
usb_send_in();
cfg = endpoint_config_table;
- for (i=1; i<=6; i++) {
+ for (i=1; i<=MAX_ENDPOINT; i++) {
UENUM = i;
en = pgm_read_byte(cfg++);
if (en) {
@@ -796,7 +796,7 @@ ISR(USB_COM_vect)
UECONX = 0;
}
}
- UERST = 0x7E;
+ UERST = UERST_MASK;
UERST = 0;
return;
}