From c1daecf18b25566da50beb3afdcbc3e5d49d3b48 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Sat, 29 May 2010 07:51:01 +0000 Subject: Fixed incorrect signature for the ATMEGA32U2 in the DFU bootloader (thanks to Axel Rohde). Partial fix to the Bluetooth SDP code - data should be encoded in big endian, not little endian. --- LUFA/Common/Common.h | 2 +- LUFA/ManPages/ChangeLog.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'LUFA') 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); diff --git a/LUFA/ManPages/ChangeLog.txt b/LUFA/ManPages/ChangeLog.txt index 638d8a119..97a49c26e 100644 --- a/LUFA/ManPages/ChangeLog.txt +++ b/LUFA/ManPages/ChangeLog.txt @@ -29,6 +29,7 @@ * - Fixed RNDISEthernet demos crashing when calculating checksums for Ethernet/TCP packets of more than ~500 bytes due to * an overflow in the checksum calculation loop (thanks to Kevin Malec) * - Fixed XPLAINBridge project not correctly reading the XMEGA's supply voltage when reporting back to the host + * - Fixed incorrect signature for the ATMEGA32U2 in the DFU bootloader (thanks to Axel Rohde) * * \section Sec_ChangeLog100513 Version 100513 * New: -- cgit v1.2.3