Skip to content

Commit b811f7e

Browse files
author
Ari Parkkila
committed
Fixed EasyCellularConnection to have debug flag
1 parent 81738ac commit b811f7e

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

features/cellular/easy_cellular/CellularConnectionFSM.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
* limitations under the License.
1616
*/
1717

18-
#include <CellularConnectionFSM.h>
18+
#include "CellularConnectionFSM.h"
19+
1920
#ifdef CELLULAR_DEVICE
2021

2122
#ifndef MBED_TRACE_MAX_LEVEL

features/cellular/easy_cellular/EasyCellularConnection.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,16 @@ bool EasyCellularConnection::cellular_status(int state, int next_state)
5353
return true;
5454
}
5555

56-
EasyCellularConnection::EasyCellularConnection() :
56+
EasyCellularConnection::EasyCellularConnection(bool debug) :
5757
_is_connected(false), _is_initialized(false), _target_state(CellularConnectionFSM::STATE_POWER_ON), _cellularSerial(
5858
MDMTXD, MDMRXD, MBED_CONF_PLATFORM_DEFAULT_SERIAL_BAUD_RATE), _cellularSemaphore(0), _cellularConnectionFSM(), _credentials_err(
5959
NSAPI_ERROR_OK)
6060
{
61+
tr_info("EasyCellularConnection()");
6162
#if MBED_CONF_CELLULAR_USE_APN_LOOKUP || MBED_CONF_PPP_CELL_IFACE_APN_LOOKUP
6263
_credentials_set = false;
6364
#endif // #if MBED_CONF_CELLULAR_USE_APN_LOOKUP || MBED_CONF_PPP_CELL_IFACE_APN_LOOKUP
64-
tr_info("EasyCellularConnection()");
65+
modem_debug_on(debug);
6566
}
6667

6768
EasyCellularConnection::~EasyCellularConnection()

features/cellular/easy_cellular/EasyCellularConnection.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class EasyCellularConnection: public CellularBase
3535
{
3636

3737
public:
38-
EasyCellularConnection();
38+
EasyCellularConnection(bool debug = false);
3939
virtual ~EasyCellularConnection();
4040

4141
public:

0 commit comments

Comments
 (0)