From 8f6cac9797ffe91c1497f2f85d8a9ebf8ca233fb Mon Sep 17 00:00:00 2001 From: Liu_Weichao Date: Fri, 15 Oct 2021 10:12:19 +0800 Subject: [PATCH] fix adapter_bluetooth test function bugs --- .../Framework/connection/bluetooth/adapter_bluetooth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/APP_Framework/Framework/connection/bluetooth/adapter_bluetooth.c b/APP_Framework/Framework/connection/bluetooth/adapter_bluetooth.c index f75bd3773..0f855a4ae 100644 --- a/APP_Framework/Framework/connection/bluetooth/adapter_bluetooth.c +++ b/APP_Framework/Framework/connection/bluetooth/adapter_bluetooth.c @@ -85,7 +85,6 @@ int AdapterBlueToothTest(void) { const char *bluetooth_msg = "BT Adapter Test"; char bluetooth_recv_msg[128]; - char recv_msg[128]; int len; int baud_rate = BAUD_RATE_115200; @@ -103,6 +102,7 @@ int AdapterBlueToothTest(void) AdapterDeviceSend(adapter, bluetooth_msg, len); printf("send %s after recv\n", bluetooth_msg); PrivTaskDelay(100); + memset(bluetooth_recv_msg, 0, 128); } #endif