Is AceTime working with ESP32 #86
Replies: 3 comments 3 replies
-
Can you try compiling
|
Beta Was this translation helpful? Give feedback.
-
I traced the problem to a dubious hack in the Arduino_JSON library.
#define typeof typeof_
#define null nullptr
#define pgm_read_word(addr) ({ \
typeof(addr) _addr = (addr); \
*(const unsigned short *)(_addr); \
}) So any program that uses one of those macros from
#include <Arduino.h>
#include <Arduino_JSON.h>
const uint16_t array[] PROGMEM = {1, 2};
void setup() {
uint16_t w = pgm_read_word(array);
}
void loop() {
}
|
Beta Was this translation helpful? Give feedback.
-
Hi Brian, Thanks for researching this strange bug fix. Best wishes |
Beta Was this translation helpful? Give feedback.
-
Hi,
i used your great library with an ESP8266 which works perfect.
But when compiling for ESP32 i get a lot of error messages ;-(
Is there a way to get AceTime running with an ESP32?
This is the error code pasted from Arduino IDE (sorry for that much text ;-(
There are also some other error messages in between but the most are related to acetime.
Would be great if you could help me running that library again
Arduino: 1.8.16 (Linux), Board: "ESP32 Dev Module, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, None"
Beta Was this translation helpful? Give feedback.
All reactions