Merge pull request #10140 from jarvte/astyle_fixes

Cellular: fix astyle for files that already in master
pull/10172/head
Martin Kojtal 2019-03-20 13:24:23 +01:00 committed by GitHub
commit 23cd1aa083
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 28 additions and 27 deletions

View File

@ -32,7 +32,7 @@
using namespace mbed;
GEMALTO_CINTERION_CellularStack::GEMALTO_CINTERION_CellularStack(ATHandler &atHandler, const char *apn, const char *user, const char* password,
GEMALTO_CINTERION_CellularStack::GEMALTO_CINTERION_CellularStack(ATHandler &atHandler, const char *apn, const char *user, const char *password,
int cid, nsapi_ip_stack_t stack_type) : AT_CellularStack(atHandler, cid, stack_type), _apn(apn),
_user(user), _password(password)
{

View File

@ -24,7 +24,7 @@ namespace mbed {
class GEMALTO_CINTERION_CellularStack : public AT_CellularStack {
public:
GEMALTO_CINTERION_CellularStack(ATHandler &atHandler, const char *apn, const char *username, const char* password, int cid, nsapi_ip_stack_t stack_type);
GEMALTO_CINTERION_CellularStack(ATHandler &atHandler, const char *apn, const char *username, const char *password, int cid, nsapi_ip_stack_t stack_type);
virtual ~GEMALTO_CINTERION_CellularStack();
protected:

View File

@ -64,5 +64,5 @@ nsapi_error_t UBLOX_AT_CellularNetwork::set_access_technology_impl(RadioAccessTe
}
}
return(ret);
return (ret);
}

View File

@ -40,7 +40,7 @@ UBLOX_N2XX::UBLOX_N2XX(FileHandle *fh): AT_CellularDevice(fh)
{
AT_CellularBase::set_cellular_properties(cellular_properties);
_at->set_urc_handler("+NPIN:", mbed::Callback<void()>(this, &UBLOX_N2XX::NPIN_URC));
memset(simstr,0,sizeof(simstr));
memset(simstr, 0, sizeof(simstr));
}
UBLOX_N2XX::~UBLOX_N2XX()

View File

@ -78,7 +78,7 @@ nsapi_error_t UBLOX_N2XX_CellularStack::create_socket_impl(CellularSocket *socke
int sock_id = 0;
int localport = socket->localAddress.get_port();
if(localport == 5683 || localport < 0 || localport > 65535) {
if (localport == 5683 || localport < 0 || localport > 65535) {
return NSAPI_ERROR_NO_SOCKET;
}
@ -121,9 +121,10 @@ nsapi_size_or_error_t UBLOX_N2XX_CellularStack::socket_sendto_impl(CellularSocke
int sent_len = 0;
char *dataStr = new char [(size * 2) + 1]();
if (!dataStr)
if (!dataStr) {
return NSAPI_ERROR_NO_MEMORY;
char_str_to_hex_str((const char*)data, size, dataStr);
}
char_str_to_hex_str((const char *)data, size, dataStr);
_at.cmd_start("AT+NSOST=");
_at.write_int(socket->id);