fix adapter_bluetooth test function bugs
This commit is contained in:
parent
8aac82b1b4
commit
8f6cac9797
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue