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 02fbbf4..276f63e 100644 (file)
@@ -196,6 +196,10 @@ static void XPROGProtocol_LeaveXPROGMode(void)
                XPROGTarget_DisableTargetTPI();
        }
 
                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);
        Endpoint_Write_Byte(CMD_XPROG);
        Endpoint_Write_Byte(XPRG_CMD_LEAVE_PROGMODE);
        Endpoint_Write_Byte(XPRG_ERR_OK);