Changed default value for the reset polarity parameter in the AVRISP-MKII project...
[pub/USBasp.git] / Projects / AVRISP-MKII / Lib / ISP / ISPTarget.c
index 55d6551..294edce 100644 (file)
@@ -216,7 +216,9 @@ void ISPTarget_ChangeTargetResetLine(const bool ResetTarget)
                AUX_LINE_DDR |= AUX_LINE_MASK;
                
                if (!(V2Params_GetParameterValue(PARAM_RESET_POLARITY)))
                AUX_LINE_DDR |= AUX_LINE_MASK;
                
                if (!(V2Params_GetParameterValue(PARAM_RESET_POLARITY)))
-                 AUX_LINE_PORT |= AUX_LINE_MASK;
+                 AUX_LINE_PORT |=  AUX_LINE_MASK;
+               else
+                 AUX_LINE_PORT &= ~AUX_LINE_MASK;
        }
        else
        {
        }
        else
        {