updated platformio.ini + add -D CHIP_ESP32C6

This commit is contained in:
Shailen Sobhee 2026-04-05 20:19:23 +02:00
parent 3e60dfeb21
commit 7524ce1d60
2 changed files with 3 additions and 0 deletions

View file

@ -63,6 +63,7 @@ build_type = debug
board_build.partitions = esp32_huge_app.csv
build_flags =
${env.build_flags}
-D CHIP_ESP32C6
-include "driver/gpio.h"
lib_deps =
; Low-Level libs, frameowrks and drivers

View file

@ -158,9 +158,11 @@ bool ConfigSettings::begin() {
case esp_chip_model_t::CHIP_ESP32C3:
strcpy(this->chipModel, "c3");
break;
#ifdef CHIP_ESP32C6
case esp_chip_model_t::CHIP_ESP32C6:
strcpy(this->chipModel, "c6");
break;
#endif
default:
sprintf(this->chipModel, "UNK%d", static_cast<int>(ci.model));
break;