Fix for ARDUINO v1.0.2 compatibility

This commit is contained in:
fvanroie 2022-01-19 21:46:47 +01:00
parent 0f61304f4f
commit 6e177fefe9

View File

@ -150,6 +150,7 @@ const char* Esp32Device::get_chip_model()
case CHIP_ESP32: case CHIP_ESP32:
return "ESP32"; return "ESP32";
#if ESP_ARDUINO_VERSION >= ESP_ARDUINO_VERSION_VAL(2, 0, 0)
#ifdef ESP32 #ifdef ESP32
case CHIP_ESP32S2: case CHIP_ESP32S2:
return "ESP32-S2"; return "ESP32-S2";
@ -162,6 +163,7 @@ const char* Esp32Device::get_chip_model()
case CHIP_ESP32H2: case CHIP_ESP32H2:
return "ESP32-H2"; return "ESP32-H2";
#endif
#endif #endif
default: default: