Add legacy ESP32 compatibility fixes

This commit is contained in:
2026-03-13 10:42:42 +01:00
parent ada5370693
commit 7c609ea452
6 changed files with 163 additions and 15 deletions

View File

@@ -144,9 +144,7 @@ void setPen()
{
Log(__FUNCTION__);
int cmd;
int value;
char *arg;
char cstrMsg[20];
// moveToDestination();
@@ -172,7 +170,7 @@ void setPen()
val = nextCommandArg();
if (val != NULL)
{
value = atoi(val);
(void)atoi(val);
sendAck();
// delay(value);
}
@@ -189,8 +187,7 @@ void setPen()
void togglePen()
{
Log(__FUNCTION__);
char *arg;
arg = nextCommandArg();
(void)nextCommandArg();
doTogglePen();
sendAck();

11
src/esp_timer_compat.c Normal file
View File

@@ -0,0 +1,11 @@
#include <ArduinoEsp32Compat.h>
#if defined(ESP32) && EGGDUINO_LEGACY_ARDUINO_ESP32
#include <esp_timer.h>
int esp_timer_is_active(esp_timer_handle_t timer)
{
(void)timer;
return 0;
}
#endif