Add a polyfill for pgm_read_dword() (issue #1433)

This commit is contained in:
Benoit Blanchon
2021-12-31 13:13:51 +01:00
parent 8f029e6096
commit d20c3c65c8
2 changed files with 9 additions and 5 deletions

View File

@ -31,10 +31,6 @@ inline float pgm_read_float(const void* p) {
return *reinterpret_cast<const float*>(convertFlashToPtr(p));
}
inline uint32_t pgm_read_dword(const void* p) {
return *reinterpret_cast<const uint32_t*>(convertFlashToPtr(p));
}
#define ARDUINOJSON_DEFINE_PROGMEM_ARRAY(type, name, value) \
static type const ARDUINOJSON_CONCAT2(name, _progmem)[] = value; \
static type const* name = reinterpret_cast<type const*>( \