Skip to content

Commit

Permalink
Fixed EEPROM bug
Browse files Browse the repository at this point in the history
  • Loading branch information
zykrah committed May 18, 2022
1 parent c70b615 commit 65a9350
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions platforms/chibios/eeprom_stm32_l4.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,6 @@
*/

#include "eeprom_stm32_defs.h"
#if !defined(FEE_PAGE_SIZE) || !defined(FEE_PAGE_COUNT) || !defined(FEE_MCU_FLASH_SIZE) || !defined(FEE_PAGE_BASE_ADDRESS)
# error "not implemented."
#endif

/* These bits indicate that the length of data which was wrote to log space */
#define FEE_BYTE_FLAG 0x00010000
Expand Down Expand Up @@ -484,7 +481,7 @@ void eeprom_write_block(const void *buf, void *addr, size_t len) {
write_len = 2;
} else {
/* Write the unaligned or single byte */
EEPROM_WriteDataByte((uintptr_t)dest++, *src++);
EEPROM_WriteDataByte((uintptr_t)dest, *src);
write_len = 1;
}

Expand Down

0 comments on commit 65a9350

Please sign in to comment.