You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to compile the TrainHub example for esp32:esp32:XIAO_ESP32C3 I ran into the following error
/<ARDUINO_DIRECTORIES_USER>/internal/Legoino_1.1.0_f5d0c9dbfa55ee37/Legoino/src/LegoinoCommon.cpp:101:10: error: no declaration matches 'uint32_t LegoinoCommon::ReadUInt32LE(uint8_t*, int)'
uint32_t LegoinoCommon::ReadUInt32LE(uint8_t *data, int offset = 0)
^~~~~~~~~~~~~
In file included from /<ARDUINO_DIRECTORIES_USER>/internal/Legoino_1.1.0_f5d0c9dbfa55ee37/Legoino/src/LegoinoCommon.cpp:11:
/<ARDUINO_DIRECTORIES_USER>/internal/Legoino_1.1.0_f5d0c9dbfa55ee37/Legoino/src/LegoinoCommon.h:27:23: note: candidate is: 'static unsigned int LegoinoCommon::ReadUInt32LE(uint8_t*, int)'
static unsigned int ReadUInt32LE(uint8_t *data, int offset);
^~~~~~~~~~~~
/<ARDUINO_DIRECTORIES_USER>/internal/Legoino_1.1.0_f5d0c9dbfa55ee37/Legoino/src/LegoinoCommon.h:17:7: note: 'class LegoinoCommon' defined here
class LegoinoCommon
^~~~~~~~~~~~~
/<ARDUINO_DIRECTORIES_USER>/internal/Legoino_1.1.0_f5d0c9dbfa55ee37/Legoino/src/LegoinoCommon.cpp:107:9: error: no declaration matches 'int32_t LegoinoCommon::ReadInt32LE(uint8_t*, int)'
int32_t LegoinoCommon::ReadInt32LE(uint8_t *data, int offset = 0)
^~~~~~~~~~~~~
In file included from /<ARDUINO_DIRECTORIES_USER>/internal/Legoino_1.1.0_f5d0c9dbfa55ee37/Legoino/src/LegoinoCommon.cpp:11:
/<ARDUINO_DIRECTORIES_USER>/internal/Legoino_1.1.0_f5d0c9dbfa55ee37/Legoino/src/LegoinoCommon.h:28:21: note: candidate is: 'static int LegoinoCommon::ReadInt32LE(uint8_t*, int)'
static signed int ReadInt32LE(uint8_t *data, int offset);
^~~~~~~~~~~
/<ARDUINO_DIRECTORIES_USER>/internal/Legoino_1.1.0_f5d0c9dbfa55ee37/Legoino/src/LegoinoCommon.h:17:7: note: 'class LegoinoCommon' defined here
class LegoinoCommon
^~~~~~~~~~~~~
When trying to compile the TrainHub example for
esp32:esp32:XIAO_ESP32C3
I ran into the following errorI think this may be related to espressif/esp-idf#6906 (comment) , assuming it used to work?
For me, replacing
unsigned int
->unsigned long
andsigned int
->signed long
in https://github.com/corneliusmunz/legoino/blob/master/src/LegoinoCommon.h solved the issue, but I'm not sure why the function prototypes don't useuint32_t
in the first place, like their implementations?The text was updated successfully, but these errors were encountered: