aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Common/Common.h
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2010-05-29 07:51:01 +0000
committerDean Camera <dean@fourwalledcubicle.com>2010-05-29 07:51:01 +0000
commitc1daecf18b25566da50beb3afdcbc3e5d49d3b48 (patch)
tree62fb587af37686f49b65250572295cf88bac4e2f /LUFA/Common/Common.h
parent3b95b8dedced6c118cfb2cd7fc72c696c076119e (diff)
downloadlufa-c1daecf18b25566da50beb3afdcbc3e5d49d3b48.tar.gz
lufa-c1daecf18b25566da50beb3afdcbc3e5d49d3b48.tar.bz2
lufa-c1daecf18b25566da50beb3afdcbc3e5d49d3b48.zip
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.
Diffstat (limited to 'LUFA/Common/Common.h')
-rw-r--r--LUFA/Common/Common.h2
1 files changed, 1 insertions, 1 deletions
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);