Skip to content

Commit

Permalink
Merge pull request #10889 from ARMmbed/release-candidate
Browse files Browse the repository at this point in the history
Release candidate for mbed-os-5.13.0-rc4
  • Loading branch information
0xc0170 authored Jun 25, 2019
2 parents 92a58df + 1533d24 commit 7482462
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
6 changes: 5 additions & 1 deletion features/cellular/framework/targets/QUECTEL/BG96/QUECTEL_BG96_CellularStack.cpp
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,13 @@ nsapi_error_t QUECTEL_BG96_CellularStack::socket_connect(nsapi_socket_t handle,
CellularSocket *socket = (CellularSocket *)handle;

int modem_connect_id = -1;
int request_connect_id = socket->id;
int err = -1;

int request_connect_id = find_socket_index(socket);
// assert here as its a programming error if the socket container doesn't contain
// specified handle
MBED_ASSERT(request_connect_id != -1);

_at.lock();
if (socket->proto == NSAPI_TCP) {
_at.cmd_start("AT+QIOPEN=");
Expand Down
8 changes: 5 additions & 3 deletions features/cellular/framework/targets/QUECTEL/M26/QUECTEL_M26_CellularStack.cpp
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -302,12 +302,14 @@ nsapi_error_t QUECTEL_M26_CellularStack::socket_connect(nsapi_socket_t handle, c
{
CellularSocket *socket = (CellularSocket *)handle;

MBED_ASSERT(socket->id != -1);

int modem_connect_id = -1;
int request_connect_id = socket->id;
int err = -1;

int request_connect_id = find_socket_index(socket);
// assert here as its a programming error if the socket container doesn't contain
// specified handle
MBED_ASSERT(request_connect_id != -1);

_at.lock();
if (socket->proto == NSAPI_TCP) {
_at.cmd_start("AT+QIOPEN=");
Expand Down

0 comments on commit 7482462

Please sign in to comment.