提交 40ebee1c 编写于 作者: R rafern 提交者: Me No Dev

Update BluetoothSerial.cpp (#3308)

上级 ed96d2a1
......@@ -136,12 +136,12 @@ static void _spp_tx_task(void * arg){
if(len){
memcpy(_spp_tx_buffer, data, len);
_spp_tx_buffer_len += len;
free(packet);
packet = NULL;
if(uxQueueMessagesWaiting(_spp_tx_queue) == 0){
_spp_send_buffer();
}
}
free(packet);
packet = NULL;
}
} else {
log_e("Something went horribly wrong");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册