Commit 2461ae50 authored by Dean Camera's avatar Dean Camera
Browse files

Future proof the XPROG protocol of the AVRISP-MKII project, so that non PDI...

Future proof the XPROG protocol of the AVRISP-MKII project, so that non PDI and TPI requests return failure.
parent ac0ece01
......@@ -115,7 +115,7 @@ static void XPROGProtocol_EnterXPROGMode(void)
Endpoint_SelectEndpoint(AVRISP_DATA_IN_EPNUM);
Endpoint_SetEndpointDirection(ENDPOINT_DIR_IN);
bool NVMBusEnabled;
bool NVMBusEnabled = false;
if (XPROG_SelectedProtocol == XPRG_PROTOCOL_PDI)
{
......@@ -138,7 +138,7 @@ static void XPROGProtocol_EnterXPROGMode(void)
/* Wait until the NVM bus becomes active */
NVMBusEnabled = XMEGANVM_WaitWhileNVMBusBusy();
}
else
else if (XPROG_SelectedProtocol == XPRG_PROTOCOL_TPI)
{
/* Enable TPI programming mode with the attached target */
XPROGTarget_EnableTargetTPI();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment