Use pgm_read_dword() instead of pgm_read_float() (issue #1433)

This commit is contained in:
Benoit Blanchon
2021-12-30 10:02:21 +01:00
parent d20c3c65c8
commit a2e1021d7d
4 changed files with 38 additions and 25 deletions

View File

@ -27,10 +27,6 @@ inline void* pgm_read_ptr(const void* p) {
return *reinterpret_cast<void* const*>(convertFlashToPtr(p));
}
inline float pgm_read_float(const void* p) {
return *reinterpret_cast<const float*>(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*>( \