diff options
Diffstat (limited to 'utils')
-rw-r--r-- | utils/hwstub/stub/rk27xx/usb_drv_rk27xx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/hwstub/stub/rk27xx/usb_drv_rk27xx.c b/utils/hwstub/stub/rk27xx/usb_drv_rk27xx.c index 3706e76b35..d20b1d2b6b 100644 --- a/utils/hwstub/stub/rk27xx/usb_drv_rk27xx.c +++ b/utils/hwstub/stub/rk27xx/usb_drv_rk27xx.c @@ -310,7 +310,7 @@ void INT_UDC(void) /* TODO handle errors */ if (rxstat & RXACK) /* RxACK */ { - int xfer_size = RX0STAT & 0xffff; + int xfer_size = rxstat & 0x7ff; ctrlep[DIR_OUT].cnt -= xfer_size; if (ctrlep[DIR_OUT].cnt > 0 && xfer_size == 64) |