Skip to content

Commit 72ac63c

Browse files
committed
Fixing same eeprom.h problem on Windows.
1 parent 68fdc3f commit 72ac63c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/windows/eeprom.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ __ATTR_PURE__ static __inline__ uint8_t eeprom_read_byte (const uint8_t *__p)
196196
{
197197
do {} while (!eeprom_is_ready ());
198198
#if E2END <= 0xFF
199-
EEARL = (uint8_t)__p;
199+
EEARL = (uint8_t)(uint16_t)__p;
200200
#else
201201
EEAR = (uint16_t)__p;
202202
#endif

0 commit comments

Comments
 (0)