1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-11-22 14:30:35 +02:00

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

This leaves the range 0x80-0xff for other uses.
This commit is contained in:
Werner Almesberger 2011-07-12 04:40:03 -03:00
parent 97604d70f2
commit c47f52d6ca

View File

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