From 0abf886284fd92b39fe62bbae5dd0a8fa5e6e20e Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Tue, 12 Jul 2022 18:01:31 +0200 Subject: [PATCH] console: support ESP32-C2 in the 'version' command --- .../system/console/advanced/components/cmd_system/cmd_system.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/system/console/advanced/components/cmd_system/cmd_system.c b/examples/system/console/advanced/components/cmd_system/cmd_system.c index cf8a882fca..f493f176d5 100644 --- a/examples/system/console/advanced/components/cmd_system/cmd_system.c +++ b/examples/system/console/advanced/components/cmd_system/cmd_system.c @@ -87,6 +87,9 @@ static int get_version(int argc, char **argv) case CHIP_ESP32H2: model = "ESP32-H2"; break; + case CHIP_ESP32C2: + model = "ESP32-C2"; + break; default: model = "Unknown"; break;