Make sure that the NVM bus/controller busy waits in the AVRISP MKII clone project...
[pub/USBasp.git] / Projects / AVRISP-MKII / Lib / V2ProtocolParams.c
index 0078851..4d508f5 100644 (file)
@@ -76,7 +76,7 @@ static ParameterItem_t ParameterTable[] =
 \r
                { .ParamID          = PARAM_STATUS_TGT_CONN,\r
                  .ParamPrivileges  = PARAM_PRIV_READ,\r
-                 .ParamValue       = 0x00                               },\r
+                 .ParamValue       = STATUS_ISP_READY                   },\r
 \r
                { .ParamID          = PARAM_DISCHARGEDELAY,\r
                  .ParamPrivileges  = PARAM_PRIV_WRITE,\r
@@ -97,7 +97,7 @@ void V2Params_LoadNonVolatileParamValues(void)
  */\r
 void V2Params_UpdateParamValues(void)\r
 {\r
-       #if defined(ADC)\r
+       #if (defined(ADC) && !defined(NO_VTARGET_DETECT))\r
        /* Update VTARGET parameter with the latest ADC conversion of VTARGET on supported AVR models */\r
        V2Params_GetParamFromTable(PARAM_VTARGET)->ParamValue = ((5 * 10 * ADC_GetResult()) / 1024);\r
        #endif\r