Skip to content
Permalink
Browse files

Update BluetoothSerial.cpp (#3308)

  • Loading branch information...
rafern authored and me-no-dev committed Oct 1, 2019
1 parent ed96d2a commit 40ebee1cb15ba8c43ec0b5fff506e3aa68fce584
Showing with 2 additions and 2 deletions.
  1. +2 −2 libraries/BluetoothSerial/src/BluetoothSerial.cpp
@@ -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");

0 comments on commit 40ebee1

Please sign in to comment.
You can’t perform that action at this time.