From 2a948c79cc5fffa189f6c878cd93beb30ea08486 Mon Sep 17 00:00:00 2001 From: serg3295 Date: Wed, 31 Jul 2024 07:25:49 +0300 Subject: [PATCH] Added 'esp_console' in 'build_config' group --- components/modules/node.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/components/modules/node.c b/components/modules/node.c index 356d10d25..9979a3990 100644 --- a/components/modules/node.c +++ b/components/modules/node.c @@ -469,12 +469,19 @@ static int node_info( lua_State* L ){ return 1; } case 3: { // build_config - lua_createtable(L, 0, 3); + lua_createtable(L, 0, 5); lua_pushboolean(L, CONFIG_MBEDTLS_TLS_ENABLED); lua_setfield(L, -2, "ssl"); add_int_field(L, BUILDINFO_LFS_SIZE, "lfs_size"); add_string_field(L, BUILDINFO_BUILD_TYPE, "number_type"); add_string_field(L, BUILDINFO_MODULES, "modules"); + #if CONFIG_ESP_CONSOLE_UART_DEFAULT || CONFIG_ESP_CONSOLE_UART_CUSTOM + add_string_field(L, "uart", "esp_console"); + #elif CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG + add_string_field(L, "usb_serial_jtag", "esp_console"); + #elif CONFIG_ESP_CONSOLE_USB_CDC + add_string_field(L, "usb_cdc", "esp_console"); + #endif return 1; } default: { // default