From 5622e6ba815653231c3578c2e285dcab6590438b Mon Sep 17 00:00:00 2001 From: Tony Date: Tue, 26 May 2026 23:18:13 +0800 Subject: [PATCH] fix(gateway): update clangd configuration and sdkconfig for improved build settings Signed-off-by: Tony --- apps/gateway/.clangd | 2 ++ apps/gateway/.vscode/settings.json | 14 ++++++++++++-- apps/gateway/sdkconfig | 2 +- 3 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 apps/gateway/.clangd diff --git a/apps/gateway/.clangd b/apps/gateway/.clangd new file mode 100644 index 0000000..437f255 --- /dev/null +++ b/apps/gateway/.clangd @@ -0,0 +1,2 @@ +CompileFlags: + Remove: [-f*, -m*] diff --git a/apps/gateway/.vscode/settings.json b/apps/gateway/.vscode/settings.json index ad00ae8..1a2b6cc 100644 --- a/apps/gateway/.vscode/settings.json +++ b/apps/gateway/.vscode/settings.json @@ -1,3 +1,13 @@ { - "idf.currentSetup": "/Users/tonylu/.espressif/v6.0/esp-idf" -} \ No newline at end of file + "idf.currentSetup": "/Users/tonylu/.espressif/v5.5.4/esp-idf", + "idf.customExtraVars": { + "OPENOCD_SCRIPTS": "/Users/tonylu/.espressif/tools/openocd-esp32/v0.12.0-esp32-20240318/openocd-esp32/share/openocd/scripts", + "ESP_ROM_ELF_DIR": "/Users/tonylu/.espressif/tools/esp-rom-elfs/20240305/" + }, + "clangd.path": "/Users/tonylu/.espressif/tools/esp-clang/esp-20.1.1_20250829/esp-clang/bin/clangd", + "clangd.arguments": [ + "--background-index", + "--query-driver=**", + "--compile-commands-dir=/Users/tonylu/StudioProjects/dalimaster/gateway/apps/gateway/build" + ] +} diff --git a/apps/gateway/sdkconfig b/apps/gateway/sdkconfig index cb14d87..7f4c067 100644 --- a/apps/gateway/sdkconfig +++ b/apps/gateway/sdkconfig @@ -1673,7 +1673,7 @@ CONFIG_ESP_NETIF_TCPIP_LWIP=y # CONFIG_ESP_NETIF_LOOPBACK is not set CONFIG_ESP_NETIF_USES_TCPIP_WITH_BSD_API=y CONFIG_ESP_NETIF_REPORT_DATA_TRAFFIC=y -# CONFIG_ESP_NETIF_RECEIVE_REPORT_ERRORS is not set +CONFIG_ESP_NETIF_RECEIVE_REPORT_ERRORS=y # CONFIG_ESP_NETIF_L2_TAP is not set # CONFIG_ESP_NETIF_BRIDGE_EN is not set # CONFIG_ESP_NETIF_SET_DNS_PER_DEFAULT_NETIF is not set