freemyipod r212 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r211‎ | r212 | r213 >
Date:00:40, 9 September 2010
Author:theseven
Status:new
Tags:
Comment:
Fix i2cwrite monitor command writing garbage
Modified paths:
  • /embios/trunk/usb/usb.c (modified) (history)

Diff [purge]

Index: embios/trunk/usb/usb.c
@@ -409,7 +409,7 @@
410410 dbgactionaddr = (dbgrecvbuf[1] >> 16) & 0xff;
411411 dbgactionlength = dbgrecvbuf[1] >> 24;
412412 if (!dbgactionlength) dbgactionlength = 256;
413 - memcpy(dbgasyncsendbuf, &dbgsendbuf[4], dbgactionlength);
 413+ memcpy(dbgasyncsendbuf, &dbgrecvbuf[4], dbgactionlength);
414414 break;
415415 #endif
416416 case 10: // READ CONSOLE