We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eac2938 commit 83f2d2dCopy full SHA for 83f2d2d
1 file changed
tmk_core/common/arm_atsam/eeprom.c
@@ -29,7 +29,7 @@ volatile uint8_t *SmartEEPROM8 = (uint8_t *) SEEPROM_ADDR;
29
uint8_t eeprom_read_byte(const uint8_t *addr) {
30
uintptr_t offset = (uintptr_t)addr;
31
if (offset >= EEPROM_SIZE)
32
- return 0xff;
+ return 0x0;
33
34
if (NVMCTRL->SEESTAT.bit.PSZ == 0 || NVMCTRL->SEESTAT.bit.SBLK == 0)
35
return buffer[offset];
@@ -40,7 +40,7 @@ uint8_t eeprom_read_byte(const uint8_t *addr) {
40
if (!NVMCTRL->SEESTAT.bit.BUSY)
41
return SmartEEPROM8[offset];
42
43
+ return 0;
44
}
45
46
void eeprom_write_byte(uint8_t *addr, uint8_t value) {
0 commit comments