freemyipod r30 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r29‎ | r30 | r31 >
Date:22:47, 5 August 2010
Author:theseven
Status:new
Tags:
Comment:
Also return the number of bytes read by the cread monitor command
Modified paths:
  • /embios/trunk/usb/usb.c (modified) (history)

Diff [purge]

Index: embios/trunk/usb/usb.c
@@ -518,8 +518,9 @@
519519 usb_drv_send_nonblocking(dbgendpoints[1], dbgasyncsendbuf, 16);
520520 break;
521521 case DBGACTION_CREAD:
522 - cread(dbgactionconsoles, (char*)&dbgasyncsendbuf[4], dbgactionlength, 0);
523522 dbgasyncsendbuf[0] = 1;
 523+ dbgasyncsendbuf[1] = cread(dbgactionconsoles, (char*)&dbgasyncsendbuf[4],
 524+ dbgactionlength, 0);
524525 usb_drv_send_nonblocking(dbgendpoints[1], dbgasyncsendbuf, 16);
525526 break;
526527 case DBGACTION_CFLUSH: