mirror of
https://github.com/esp8266/Arduino.git
synced 2025-08-01 03:47:23 +03:00
Fixing a bug in Mac eeprom.h (that appears on ATtiny's).
This commit is contained in:
2
build/macosx/dist/eeprom.h
vendored
2
build/macosx/dist/eeprom.h
vendored
@ -196,7 +196,7 @@ __ATTR_PURE__ static __inline__ uint8_t eeprom_read_byte (const uint8_t *__p)
|
||||
{
|
||||
do {} while (!eeprom_is_ready ());
|
||||
#if E2END <= 0xFF
|
||||
EEARL = (uint8_t)__p;
|
||||
EEARL = (uint8_t)(uint16_t)__p;
|
||||
#else
|
||||
EEAR = (uint16_t)__p;
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user