Skip to content

Commit 9db78f9

Browse files
authored
Merge pull request #1039 from megacct/readSock
Update MbedClient.cpp fix readSocket osPriority and name the thread
2 parents 8a56bdf + 38c56fb commit 9db78f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/SocketWrapper/src/MbedClient.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ void arduino::MbedClient::configureSocket(Socket *_s) {
7171
}
7272
mutex->lock();
7373
if (reader_th == nullptr) {
74-
reader_th = new rtos::Thread(osPriorityNormal - 2);
74+
reader_th = new rtos::Thread(osPriorityNormal, OS_STACK_SIZE, nullptr, "readSocket");
7575
reader_th->start(mbed::callback(this, &MbedClient::readSocket));
7676
}
7777
mutex->unlock();

0 commit comments

Comments
 (0)