Skip to content

Commit

Permalink
Merge branch 'contrib/github_pr_14593' into 'master'
Browse files Browse the repository at this point in the history
feat(advanced_console): Add ESP32-P4 ESP32-C5 model support in 'version' command output (GitHub PR)

Closes IDFGH-13722

See merge request espressif/esp-idf!33565
  • Loading branch information
sudeep-mohanty committed Sep 18, 2024
2 parents 28a92e5 + 328de49 commit 453850e
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,12 @@ static int get_version(int argc, char **argv)
case CHIP_ESP32C2:
model = "ESP32-C2";
break;
case CHIP_ESP32P4:
model = "ESP32-P4";
break;
case CHIP_ESP32C5:
model = "ESP32-C5";
break;
default:
model = "Unknown";
break;
Expand Down Expand Up @@ -153,7 +159,7 @@ static void register_free(void)
ESP_ERROR_CHECK( esp_console_cmd_register(&cmd) );
}

/* 'heap' command prints minumum heap size */
/* 'heap' command prints minimum heap size */
static int heap_size(int argc, char **argv)
{
uint32_t heap_size = heap_caps_get_minimum_free_size(MALLOC_CAP_DEFAULT);
Expand Down

0 comments on commit 453850e

Please sign in to comment.