X-Git-Url: http://git.linex4red.de/pub/lufa.git/blobdiff_plain/85343a436d181dfe3c7d4b0f2b35227d5c3e6c57..refs/heads/ProMicro:/Bootloaders/MassStorage/Lib/VirtualFAT.c?ds=inline diff --git a/Bootloaders/MassStorage/Lib/VirtualFAT.c b/Bootloaders/MassStorage/Lib/VirtualFAT.c index 23edd26ba..be6438f92 100644 --- a/Bootloaders/MassStorage/Lib/VirtualFAT.c +++ b/Bootloaders/MassStorage/Lib/VirtualFAT.c @@ -1,13 +1,13 @@ /* LUFA Library - Copyright (C) Dean Camera, 2013. + Copyright (C) Dean Camera, 2021. dean [at] fourwalledcubicle [dot] com www.lufa-lib.org */ /* - Copyright 2013 Dean Camera (dean [at] fourwalledcubicle [dot] com) + Copyright 2021 Dean Camera (dean [at] fourwalledcubicle [dot] com) Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted @@ -260,7 +260,7 @@ static void UpdateFAT12ClusterEntry(uint8_t* const FATTable, else { FATTable[FATOffset] = ChainEntry; - FATTable[FATOffset + 1] = (FATTable[FATOffset] & 0xF0) | (ChainEntry >> 8); + FATTable[FATOffset + 1] = (FATTable[FATOffset + 1] & 0xF0) | (ChainEntry >> 8); } } @@ -387,7 +387,7 @@ static void ReadWriteEEPROMFileBlock(const uint16_t BlockNumber, { /* Write out the mapped block of data to the device's EEPROM */ for (uint16_t i = 0; i < SECTOR_SIZE_BYTES; i++) - WriteEEPROMByte((uint8_t*)EEPROMAddress++, BlockBuffer[i]); + WriteEEPROMByte((uint8_t*)EEPROMAddress++, BlockBuffer[i]); } }