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 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'LUFA/Common') 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); -- cgit v1.2.3