X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/dbb5f249bd057c7b292645463c52067c1da58efa..f9c0357b731e5ca4a5456056bbbe2e4a8a2dc9fe:/Projects/Incomplete/AVRISP/Lib/V2ProtocolTarget.c?ds=sidebyside diff --git a/Projects/Incomplete/AVRISP/Lib/V2ProtocolTarget.c b/Projects/Incomplete/AVRISP/Lib/V2ProtocolTarget.c index 15ac3e5b4..caa7010ba 100644 --- a/Projects/Incomplete/AVRISP/Lib/V2ProtocolTarget.c +++ b/Projects/Incomplete/AVRISP/Lib/V2ProtocolTarget.c @@ -71,7 +71,7 @@ void V2Protocol_ChangeTargetResetLine(bool ResetTarget) } else { - RESET_LINE_PORT &= ~RESET_LINE_MASK; + RESET_LINE_PORT &= ~RESET_LINE_MASK; RESET_LINE_DDR &= ~RESET_LINE_MASK; } } @@ -89,13 +89,13 @@ uint8_t V2Protocol_WaitWhileTargetBusy(void) do { - V2Protocol_DelayMS(1); - SPI_SendByte(0xF0); SPI_SendByte(0x00); SPI_SendByte(0x00); ResponseByte = SPI_ReceiveByte(); + + V2Protocol_DelayMS(1); } while ((ResponseByte & 0x01) && (TimeoutMS--));