mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-28 13:46:36 +00:00
Fix for ARDUINO v1.0.2 compatibility
This commit is contained in:
parent
0f61304f4f
commit
6e177fefe9
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user