Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 40ebee1

Browse filesBrowse files
rafernme-no-dev
authored andcommitted
Update BluetoothSerial.cpp (espressif#3308)
1 parent ed96d2a commit 40ebee1
Copy full SHA for 40ebee1

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎libraries/BluetoothSerial/src/BluetoothSerial.cpp

Copy file name to clipboardExpand all lines: libraries/BluetoothSerial/src/BluetoothSerial.cpp
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,12 +136,12 @@ static void _spp_tx_task(void * arg){
136136
if(len){
137137
memcpy(_spp_tx_buffer, data, len);
138138
_spp_tx_buffer_len += len;
139-
free(packet);
140-
packet = NULL;
141139
if(uxQueueMessagesWaiting(_spp_tx_queue) == 0){
142140
_spp_send_buffer();
143141
}
144142
}
143+
free(packet);
144+
packet = NULL;
145145
}
146146
} else {
147147
log_e("Something went horribly wrong");

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.