Slow AVRISP-MKII clone PDI/TPI programming speed back to 250KHz due to issues with...
[pub/USBasp.git] / Projects / AVRISP-MKII / Lib / XPROG / XPROGProtocol.c
index edd362b..276f63e 100644 (file)
@@ -3,7 +3,7 @@
      Copyright (C) Dean Camera, 2010.
 
   dean [at] fourwalledcubicle [dot] com
-      www.fourwalledcubicle.com
+           www.lufa-lib.org
 */
 
 /*
@@ -196,6 +196,10 @@ static void XPROGProtocol_LeaveXPROGMode(void)
                XPROGTarget_DisableTargetTPI();
        }
 
+       #if defined(XCK_RESCUE_CLOCK_ENABLE) && defined(ENABLE_ISP_PROTOCOL)
+       ISPTarget_ConfigureRescueClock();
+       #endif
+
        Endpoint_Write_Byte(CMD_XPROG);
        Endpoint_Write_Byte(XPRG_CMD_LEAVE_PROGMODE);
        Endpoint_Write_Byte(XPRG_ERR_OK);