Fixing same eeprom.h problem on Windows.

This commit is contained in:
David A. Mellis 2011-09-28 17:23:44 -04:00
parent 68fdc3f012
commit 72ac63c892
1 changed files with 1 additions and 1 deletions

View File

@ -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