Add legacy ESP32 compatibility fixes
This commit is contained in:
@@ -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
11
src/esp_timer_compat.c
Normal 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
|
||||
Reference in New Issue
Block a user