mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #10140 from jarvte/astyle_fixes
Cellular: fix astyle for files that already in masterpull/10172/head
commit
23cd1aa083
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -64,5 +64,5 @@ nsapi_error_t UBLOX_AT_CellularNetwork::set_access_technology_impl(RadioAccessTe
|
|||
}
|
||||
}
|
||||
|
||||
return(ret);
|
||||
return (ret);
|
||||
}
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue