Skip to content

Commit 2cb24df

Browse files
committed
GSM: fix identation and spacing
1 parent bed5201 commit 2cb24df

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

libraries/GSM/src/GSM.cpp

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,14 @@
2121

2222
#include "mbed.h"
2323
#include "CellularLog.h"
24+
#include "CellularDevice.h"
2425
#include "CellularContext.h"
2526
#include "CellularInterface.h"
2627
#include "GEMALTO_CINTERION_CellularStack.h"
2728

2829
#define MAXRETRY 3
2930

30-
arduino::CMUXClass * arduino::CMUXClass::get_default_instance()
31+
arduino::CMUXClass *arduino::CMUXClass::get_default_instance()
3132
{
3233
static mbed::UnbufferedSerial serial(MBED_CONF_GEMALTO_CINTERION_TX, MBED_CONF_GEMALTO_CINTERION_RX, 115200);
3334
serial.set_flow_control(mbed::SerialBase::RTSCTS_SW, MBED_CONF_GEMALTO_CINTERION_CTS, NC);
@@ -37,11 +38,11 @@ arduino::CMUXClass * arduino::CMUXClass::get_default_instance()
3738

3839
mbed::CellularDevice *mbed::CellularDevice::get_default_instance()
3940
{
40-
static auto cmux = arduino::CMUXClass::get_default_instance();
41-
static mbed::GEMALTO_CINTERION device(cmux->get_serial(0));
42-
nextSerialPort++;
43-
device.enableCMUXChannel = mbed::callback(cmux, &arduino::CMUXClass::enableCMUXChannel);
44-
return &device;
41+
static auto cmux = arduino::CMUXClass::get_default_instance();
42+
static mbed::GEMALTO_CINTERION device(cmux->get_serial(0));
43+
nextSerialPort++;
44+
device.enableCMUXChannel = mbed::callback(cmux, &arduino::CMUXClass::enableCMUXChannel);
45+
return &device;
4546
}
4647

4748
int arduino::GSMClass::begin(const char* pin, const char* apn, const char* username, const char* password, RadioAccessTechnologyType rat, uint32_t band, bool restart) {
@@ -117,11 +118,11 @@ int arduino::GSMClass::begin(const char* pin, const char* apn, const char* usern
117118
return connect_status == NSAPI_ERROR_OK ? 1 : 0;
118119
}
119120

120-
void arduino::GSMClass::enableCmux(){
121+
void arduino::GSMClass::enableCmux() {
121122
_cmuxGSMenable = true;
122123
}
123124

124-
bool arduino::GSMClass::isCmuxEnable(){
125+
bool arduino::GSMClass::isCmuxEnable() {
125126
return _cmuxGSMenable;
126127
}
127128

0 commit comments

Comments
 (0)