mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2026-04-20 11:02:14 +02:00
updated platformio.ini + add -D CHIP_ESP32C6
This commit is contained in:
parent
3e60dfeb21
commit
7524ce1d60
2 changed files with 3 additions and 0 deletions
|
|
@ -63,6 +63,7 @@ build_type = debug
|
||||||
board_build.partitions = esp32_huge_app.csv
|
board_build.partitions = esp32_huge_app.csv
|
||||||
build_flags =
|
build_flags =
|
||||||
${env.build_flags}
|
${env.build_flags}
|
||||||
|
-D CHIP_ESP32C6
|
||||||
-include "driver/gpio.h"
|
-include "driver/gpio.h"
|
||||||
lib_deps =
|
lib_deps =
|
||||||
; Low-Level libs, frameowrks and drivers
|
; Low-Level libs, frameowrks and drivers
|
||||||
|
|
|
||||||
|
|
@ -158,9 +158,11 @@ bool ConfigSettings::begin() {
|
||||||
case esp_chip_model_t::CHIP_ESP32C3:
|
case esp_chip_model_t::CHIP_ESP32C3:
|
||||||
strcpy(this->chipModel, "c3");
|
strcpy(this->chipModel, "c3");
|
||||||
break;
|
break;
|
||||||
|
#ifdef CHIP_ESP32C6
|
||||||
case esp_chip_model_t::CHIP_ESP32C6:
|
case esp_chip_model_t::CHIP_ESP32C6:
|
||||||
strcpy(this->chipModel, "c6");
|
strcpy(this->chipModel, "c6");
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
default:
|
default:
|
||||||
sprintf(this->chipModel, "UNK%d", static_cast<int>(ci.model));
|
sprintf(this->chipModel, "UNK%d", static_cast<int>(ci.model));
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue