mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Define pgm_read_pointer in the end, as pgm_read_ptr is not defined on the ESP32 platform
This commit is contained in:
parent
4056359101
commit
cf1b69513f
1 changed files with 6 additions and 2 deletions
|
@ -1328,8 +1328,6 @@ MAKE_PIN(P13, 13); //
|
|||
|
||||
#elif defined(ESP8266) || defined(ESP32)
|
||||
|
||||
#define pgm_read_pointer(p) pgm_read_ptr(p)
|
||||
|
||||
#define MAKE_PIN(className, pin) \
|
||||
class className { \
|
||||
public: \
|
||||
|
@ -1418,6 +1416,12 @@ MAKE_PIN(P17, 17); // INT
|
|||
|
||||
#undef MAKE_PIN
|
||||
|
||||
// pgm_read_ptr is not defined in the ESP32, so we have to undef the diffinition from version_helper.h
|
||||
#ifdef pgm_read_pointer
|
||||
#undef pgm_read_pointer
|
||||
#endif
|
||||
#define pgm_read_pointer(p) pgm_read_ptr(p)
|
||||
|
||||
#else
|
||||
#error "Please define board in avrpins.h"
|
||||
|
||||
|
|
Loading…
Reference in a new issue