Skip to content

Commit

Permalink
Fix issue 4095 (#4503)
Browse files Browse the repository at this point in the history
pgmspace.h missing 'pgm_get_far_address'
  • Loading branch information
MHotchin authored Nov 8, 2020
1 parent 486a4c6 commit 28a8073
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cores/esp32/pgmspace.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ typedef unsigned long prog_uint32_t;
*(void * const *)(_addr); \
})

#define pgm_get_far_address(x) ((uint32_t)(&(x)))

#define pgm_read_byte_near(addr) pgm_read_byte(addr)
#define pgm_read_word_near(addr) pgm_read_word(addr)
#define pgm_read_dword_near(addr) pgm_read_dword(addr)
Expand Down

0 comments on commit 28a8073

Please sign in to comment.