mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Workaround the following issue: https://github.com/esp8266/Arduino/issues/2078
Also see: https://travis-ci.org/felis/USB_Host_Shield_2.0/jobs/170350078
This commit is contained in:
parent
58015d611d
commit
aa3731c230
1 changed files with 12 additions and 0 deletions
12
settings.h
12
settings.h
|
@ -177,4 +177,16 @@ extern SPI_HandleTypeDef SPI_Handle; // Needed to be declared in your main.cpp
|
|||
#define MFK_CASTUINT8T
|
||||
#endif
|
||||
|
||||
// Workaround issue: https://github.com/esp8266/Arduino/issues/2078
|
||||
#ifdef ESP8266
|
||||
#undef PROGMEM
|
||||
#define PROGMEM
|
||||
#undef PSTR
|
||||
#define PSTR(s) (s)
|
||||
#undef pgm_read_byte
|
||||
#define pgm_read_byte(addr) (*reinterpret_cast<const uint8_t*>(addr))
|
||||
#undef pgm_read_word
|
||||
#define pgm_read_word(addr) (*reinterpret_cast<const uint16_t*>(addr))
|
||||
#endif
|
||||
|
||||
#endif /* SETTINGS_H */
|
||||
|
|
Loading…
Reference in a new issue