Fixed incorrect signature for the ATMEGA32U2 in the DFU bootloader (thanks to Axel...
[pub/USBasp.git] / LUFA / Common / Common.h
index 86b84cc..febc216 100644 (file)
                        {
                                uint8_t* CurrDataPos = (uint8_t*)Data;
                        
-                               while (Bytes)
+                               while (Bytes > 1)
                                {
                                        uint8_t Temp = *CurrDataPos;
                                        *CurrDataPos = *(CurrDataPos + Bytes - 1);