From 22ce3f0a554fb51063c4b9d8907cf3f43cddb6a8 Mon Sep 17 00:00:00 2001 From: zwsd Date: Thu, 4 Aug 2022 15:15:00 +0800 Subject: [PATCH] update --- .vscode/settings.json | 5 ++++- main/main.c | 6 +++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index bf562e6..0228b50 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,3 +1,6 @@ { - "C_Cpp.errorSquiggles": "Enabled" + "C_Cpp.errorSquiggles": "Enabled", + "files.associations": { + "uart.h": "c" + } } \ No newline at end of file diff --git a/main/main.c b/main/main.c index 7560fba..3c22e9d 100644 --- a/main/main.c +++ b/main/main.c @@ -26,7 +26,7 @@ #include "esp_gatt_defs.h" #include "esp_bt_main.h" #include "esp_system.h" -#include "esp_gatt_common_api.h" + #include "esp_gatt_common_api.h" #include "esp_log.h" #include "freertos/FreeRTOS.h" @@ -59,11 +59,11 @@ enum { SPP_IDX_SVC, - SPP_IDX_SPP_DATA_RECV_VAL, - SPP_IDX_SPP_DATA_NTY_VAL, SPP_IDX_SPP_DATA_NTF_CFG, + SPP_IDX_SPP_DATA_RECV_VAL, + #ifdef SUPPORT_HEARTBEAT SPP_IDX_SPP_HEARTBEAT_VAL, SPP_IDX_SPP_HEARTBEAT_CFG,