Skip to content

Commit 4b3ef73

Browse files
author
Ari Parkkila
committed
Cellular: Fix astyle
1 parent 27024b3 commit 4b3ef73

File tree

9 files changed

+12
-11
lines changed

9 files changed

+12
-11
lines changed

TESTS/netsocket/nidd/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ void poll_pending_messages(CellularNonIPSocket &sock, int count)
7272
{
7373
uint8_t buf[100] = {0};
7474
sock.set_timeout(1000);
75-
for (int i=0; i < count; i++) {
75+
for (int i = 0; i < count; i++) {
7676
if (i == 0 || i == 2) {
7777
(void) sock.send("", 0); // poll to clear any remaining MT messages
7878
}

TESTS/netsocket/nidd/niddsocket_send_invalid.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ void NIDDSOCKET_SEND_INVALID()
2929
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock.open(CellularContext::get_default_nonip_instance()));
3030

3131
TEST_ASSERT_EQUAL(sock.send(NULL, 0), NSAPI_ERROR_PARAMETER);
32-
TEST_ASSERT_EQUAL(sock.send(NULL, MAX_CP_DATA_RECV_LEN + 1), NSAPI_ERROR_PARAMETER);
32+
TEST_ASSERT_EQUAL(sock.send(NULL, MBED_CONF_CELLULAR_MAX_CP_DATA_RECV_LEN + 1), NSAPI_ERROR_PARAMETER);
3333

3434
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock.close());
3535
}

features/cellular/framework/AT/AT_CellularContext.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,8 @@ bool AT_CellularContext::get_context()
430430
return true;
431431
}
432432

433-
const char* AT_CellularContext::get_nonip_context_type_str() {
433+
const char *AT_CellularContext::get_nonip_context_type_str()
434+
{
434435
return "Non-IP";
435436
}
436437

features/cellular/framework/AT/AT_ControlPlane_netif.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ void AT_ControlPlane_netif::urc_cp_recv()
6060

6161
nsapi_size_or_error_t AT_ControlPlane_netif::send(const void *cpdata, nsapi_size_t cpdata_length)
6262
{
63-
if (cpdata_length > MAX_CP_DATA_RECV_LEN) {
63+
if (cpdata_length > MBED_CONF_CELLULAR_MAX_CP_DATA_RECV_LEN) {
6464
return NSAPI_ERROR_PARAMETER;
6565
}
6666

@@ -79,7 +79,7 @@ nsapi_size_or_error_t AT_ControlPlane_netif::recv(void *cpdata, nsapi_size_t cpd
7979
{
8080
_at.lock();
8181
if (_packet_list.count() <= 0) {
82-
(void) send("", 0); // poll for missing +CRTDCP indications
82+
(void) send("", 0); // poll for missing +CRTDCP indications
8383
if (_packet_list.count() <= 0) {
8484
return NSAPI_ERROR_WOULD_BLOCK;
8585
}

features/cellular/framework/targets/QUECTEL/BC95/QUECTEL_BC95_CellularContext.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ NetworkStack *QUECTEL_BC95_CellularContext::get_stack()
4444
}
4545
#endif // #if !NSAPI_PPP_AVAILABLE
4646

47-
const char* QUECTEL_BC95_CellularContext::get_nonip_context_type_str()
47+
const char *QUECTEL_BC95_CellularContext::get_nonip_context_type_str()
4848
{
4949
return "NONIP";
5050
}

features/cellular/framework/targets/QUECTEL/BC95/QUECTEL_BC95_CellularContext.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class QUECTEL_BC95_CellularContext: public AT_CellularContext {
3030
#if !NSAPI_PPP_AVAILABLE
3131
virtual NetworkStack *get_stack();
3232
#endif // #if !NSAPI_PPP_AVAILABLE
33-
virtual const char* get_nonip_context_type_str();
33+
virtual const char *get_nonip_context_type_str();
3434
};
3535

3636
} /* namespace mbed */

features/cellular/framework/targets/UBLOX/N2XX/UBLOX_N2XX_CellularContext.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ NetworkStack *UBLOX_N2XX_CellularContext::get_stack()
4444
}
4545
#endif
4646

47-
const char* UBLOX_N2XX_CellularContext::get_nonip_context_type_str()
47+
const char *UBLOX_N2XX_CellularContext::get_nonip_context_type_str()
4848
{
4949
return "NONIP";
5050
}

features/cellular/framework/targets/UBLOX/N2XX/UBLOX_N2XX_CellularContext.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class UBLOX_N2XX_CellularContext: public AT_CellularContext {
3434
virtual NetworkStack *get_stack();
3535
#endif
3636

37-
virtual const char* get_nonip_context_type_str();
37+
virtual const char *get_nonip_context_type_str();
3838
};
3939

4040
} /* namespace mbed */

features/cellular/framework/targets/UBLOX/N2XX/UBLOX_N2XX_CellularNetwork.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ nsapi_error_t UBLOX_N2XX_CellularNetwork::clear()
4242
}
4343

4444
nsapi_error_t UBLOX_N2XX_CellularNetwork::set_ciot_optimization_config(CIoT_Supported_Opt supported_opt,
45-
CIoT_Preferred_UE_Opt preferred_opt,
46-
Callback<void(CIoT_Supported_Opt)> network_support_cb)
45+
CIoT_Preferred_UE_Opt preferred_opt,
46+
Callback<void(CIoT_Supported_Opt)> network_support_cb)
4747
{
4848
_ciotopt_network_support_cb = network_support_cb;
4949
nsapi_error_t err = _at.at_cmd_discard("+CRTDCP", "=", "%d", 1);

0 commit comments

Comments
 (0)