freemyipod r439 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r438‎ | r439 | r440 >
Date:23:24, 16 January 2011
Author:theseven
Status:new
Tags:
Comment:
emCORE: Fix a leftover wrong shutdown type
Modified paths:
  • /emcore/trunk/usb/usb.c (modified) (history)

Diff [purge]

Index: emcore/trunk/usb/usb.c
@@ -714,7 +714,7 @@
715715 power_off();
716716 break;
717717 case DBGACTION_RESET:
718 - shutdown(true);
 718+ shutdown(false);
719719 reset();
720720 break;
721721 case DBGACTION_CWRITE:
@@ -739,9 +739,9 @@
740740 usb_drv_send_nonblocking(dbgendpoints[1], dbgasyncsendbuf, 16);
741741 break;
742742 case DBGACTION_EXECFIRMWARE:
743 - shutdown(false);
744743 dbgasyncsendbuf[0] = 1;
745744 usb_drv_send_nonblocking(dbgendpoints[1], dbgasyncsendbuf, 16);
 745+ shutdown(false);
746746 execfirmware((void*)dbgactionaddr, (void*)dbgactionoffset,
747747 (size_t)dbgactionlength);
748748 #ifdef HAVE_BOOTFLASH