Skip to content

Commit 38c56fb

Browse files
authored
Update MbedClient.cpp fix osPriority and name thread
1 parent 9f0337f commit 38c56fb

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)