Hi everyone, has anyone by chance had problems with the Heltec LoRa 32 v3 board after updating to Arduino IDE 2.3.6? I can't compile sketches that used to compile, and I get the errors below.
The memset problem can be fixed by adding the appropriate header - <String.h>.
Many Thanks for any help.
Library Heltec ESP32 Dev-Boards has been declared precompiled:
Using precompiled library in /home/fabio/Arduino/libraries/Heltec_ESP32_Dev-Boards/src/esp32s3
/home/fabio/Arduino/libraries/Heltec_ESP32_Dev-Boards/src/driver/sx126x.c: In function 'sx126xSleep':
/home/fabio/Arduino/libraries/Heltec_ESP32_Dev-Boards/src/driver/sx126x.c:247:5: error: implicit declaration of function 'delay'; did you mean 'Delay'? [-Wimplicit-function-declaration]
247 | delay( 2 );
| ^~~~~
| Delay
/home/fabio/Arduino/libraries/Heltec_ESP32_Dev-Boards/src/driver/sx126x.c: In function 'SX126xGetPacketStatus':
/home/fabio/Arduino/libraries/Heltec_ESP32_Dev-Boards/src/driver/sx126x.c:731:13: error: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
731 | memset( pktStatus, 0, sizeof( PacketStatus_t ) );
| ^~~~~~
/home/fabio/Arduino/libraries/Heltec_ESP32_Dev-Boards/src/driver/sx126x.c:9:1: note: 'memset' is defined in header '<string.h>'; this is probably fixable by adding '#include <string.h>'
8 | #include "esp_sleep.h"
+++ |+#include <string.h>
9 | /*!
/home/fabio/Arduino/libraries/Heltec_ESP32_Dev-Boards/src/radio/radio.c: In function 'RadioIsChannelFree':
/home/fabio/Arduino/libraries/Heltec_ESP32_Dev-Boards/src/radio/radio.c:572:5: error: implicit declaration of function 'delay' [-Wimplicit-function-declaration]
572 | delay( 1 );
| ^~~~~
/home/fabio/Arduino/libraries/Heltec_ESP32_Dev-Boards/src/driver/sx1262-board.c: In function 'SX126xWaitOnBusy':
/home/fabio/Arduino/libraries/Heltec_ESP32_Dev-Boards/src/driver/sx1262-board.c:82:17: error: implicit declaration of function 'lora_printf'; did you mean 'log_printf'? [-Wimplicit-function-declaration]
82 | lora_printf("spi timeout\r\n");
| ^~~~~~~~~~~
| log_printf
exit status 1
Compilation error: exit status 1