From: Dean Camera Date: Sun, 28 Oct 2012 13:56:14 +0000 (+0000) Subject: Make "HighByte" variable in the CDC Bootloader a uint8_t rather than a bool to be... X-Git-Tag: LUFA-130303~19 X-Git-Url: http://git.linex4red.de/pub/USBasp.git/commitdiff_plain/9740d3a55f1e5dc297aeddbb3c822831a426c658?ds=inline Make "HighByte" variable in the CDC Bootloader a uint8_t rather than a bool to be more semantically correct, since it is bitwise ORed to obtain a byte address in the AVR's flash memory. --- diff --git a/Bootloaders/CDC/BootloaderCDC.c b/Bootloaders/CDC/BootloaderCDC.c index 656f1e024..f47fb1158 100644 --- a/Bootloaders/CDC/BootloaderCDC.c +++ b/Bootloaders/CDC/BootloaderCDC.c @@ -237,7 +237,7 @@ static void ReadWriteMemoryBlock(const uint8_t Command) uint16_t BlockSize; char MemoryType; - bool HighByte = false; + uint8_t HighByte = 0; uint8_t LowByte = 0; BlockSize = (FetchNextCommandByte() << 8);