1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-07-01 03:33:17 +03:00

atusb/fw/board_app.c (INT0_vect): limit interrupt serials to 0x80-0xff

This leaves the range 0x00-0x7f for other uses.
This commit is contained in:
Werner Almesberger 2011-07-12 04:40:03 -03:00
parent 97604d70f2
commit 7cae01bc0e

View File

@ -157,7 +157,7 @@ ISR(INT0_vect)
{
if (eps[1].state == EP_IDLE) {
led(1);
irq_serial++;
irq_serial = (irq_serial+1) | 0x80;
usb_send(&eps[1], &irq_serial, 1, done, NULL);
}
}