freemyipod r969 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r968‎ | r969 | r970 >
Date:23:34, 26 August 2014
Author:theseven
Status:new
Tags:
Comment:
emCORE: Fix USB console bug
Modified paths:
  • /emcore/trunk/usb/usbdebug.c (modified) (history)

Diff [purge]

Index: emcore/trunk/usb/usbdebug.c
@@ -443,12 +443,8 @@
444444 }
445445 bytes = MIN(64, (int)dbgmemaddr);
446446 dbgmemaddr -= bytes;
447 - if (dbgmemaddr)
448 - {
449 - usb_ep0_start_tx(dbgusb, dbgbuf, bytes,
450 - bytes < 64 ? usb_ep0_short_tx_callback : read_console_callback);
451 - }
452 - else usb_ep0_start_tx(dbgusb, dbgbuf, bytes, NULL);
 447+ usb_ep0_start_tx(dbgusb, dbgbuf, bytes,
 448+ bytes < 64 ? usb_ep0_short_tx_callback : read_console_callback);
453449 return true;
454450 }
455451