From 952ca8729faeb7daf74dcec09888eeab624704da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Teppo=20J=C3=A4rvelin?= Date: Tue, 13 Feb 2018 17:11:25 +0200 Subject: [PATCH] Smaller thread stack size for dispatcher thread to save memory. --- features/cellular/easy_cellular/CellularConnectionUtil.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/features/cellular/easy_cellular/CellularConnectionUtil.cpp b/features/cellular/easy_cellular/CellularConnectionUtil.cpp index 4cc343f4be..2c5f4d96ec 100644 --- a/features/cellular/easy_cellular/CellularConnectionUtil.cpp +++ b/features/cellular/easy_cellular/CellularConnectionUtil.cpp @@ -400,8 +400,6 @@ void CellularConnectionUtil::event() case STATE_CONNECT_NETWORK: cellularDevice.set_timeout(TIMEOUT_NETWORK); log_info("Connect to cellular network (timeout %d ms)", TIMEOUT_NETWORK); - // Set APN - //network->set_credentials("internet"); err = _network->connect(); if (!err) { _next_state = STATE_CONNECTED; @@ -463,7 +461,7 @@ nsapi_error_t CellularConnectionUtil::start_dispatch() MBED_ASSERT(!_queue_thread); - _queue_thread = new rtos::Thread(); + _queue_thread = new rtos::Thread(osPriorityNormal, 1024); if (!_queue_thread) { stop(); return NSAPI_ERROR_NO_MEMORY;