X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/3b95b8dedced6c118cfb2cd7fc72c696c076119e..c1daecf18b25566da50beb3afdcbc3e5d49d3b48:/LUFA/Common/Common.h?ds=inline diff --git a/LUFA/Common/Common.h b/LUFA/Common/Common.h index 86b84cc2a..febc216bc 100644 --- a/LUFA/Common/Common.h +++ b/LUFA/Common/Common.h @@ -169,7 +169,7 @@ { uint8_t* CurrDataPos = (uint8_t*)Data; - while (Bytes) + while (Bytes > 1) { uint8_t Temp = *CurrDataPos; *CurrDataPos = *(CurrDataPos + Bytes - 1);