fixed esp32-c6 platform detection issue

This commit is contained in:
Shailen Sobhee 2026-03-30 21:04:59 +02:00
parent f67da0917a
commit bb61a1703d
4 changed files with 27 additions and 42 deletions

View file

@ -158,11 +158,9 @@ 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;

View file

@ -4712,8 +4712,8 @@ void transceiver_config_t::load() {
this->SCKPin = 15;
this->CSNPin = 14;
break;
#ifdef CHIP_ESP32C6
case esp_chip_model_t::CHIP_ESP32C6:
// Pinout applicable for the ESP32-C6-WROOM-1 module (ESP32-C6-DevKitC-1-N4)
this->TXPin = 10;
this->RXPin = 10;
this->MOSIPin = 7;
@ -4721,7 +4721,6 @@ void transceiver_config_t::load() {
this->SCKPin = 6;
this->CSNPin = 0;
break;
#endif
default:
this->TXPin = 13;
this->RXPin = 12;