Skip to content

Commit 1960671

Browse files
authored
Merge pull request #11630 from kivaisan/move_is_connected_as_protected
Cellular: Change visibility of _is_connected as protected
2 parents c94ae90 + 1279c20 commit 1960671

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

features/cellular/framework/AT/AT_CellularContext.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ using namespace mbed;
4747
using namespace rtos;
4848

4949
AT_CellularContext::AT_CellularContext(ATHandler &at, CellularDevice *device, const char *apn, bool cp_req, bool nonip_req) :
50-
AT_CellularBase(at), _is_connected(false), _current_op(OP_INVALID), _fh(0), _cp_req(cp_req)
50+
AT_CellularBase(at), _current_op(OP_INVALID), _fh(0), _cp_req(cp_req), _is_connected(false)
5151
{
5252
tr_info("New CellularContext %s (%p)", apn ? apn : "", this);
5353
_nonip_req = nonip_req;

features/cellular/framework/AT/AT_CellularContext.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ class AT_CellularContext : public CellularContext, public AT_CellularBase {
121121
void do_disconnect();
122122
void set_cid(int cid);
123123
private:
124-
bool _is_connected;
125124
ContextOperation _current_op;
126125
FileHandle *_fh;
127126
rtos::Semaphore _semaphore;
@@ -131,6 +130,7 @@ class AT_CellularContext : public CellularContext, public AT_CellularBase {
131130
char _found_apn[MAX_APN_LENGTH];
132131
// flag indicating if CP was requested to be setup
133132
bool _cp_req;
133+
bool _is_connected;
134134
};
135135

136136
} // namespace mbed

0 commit comments

Comments
 (0)