File tree Expand file tree Collapse file tree 3 files changed +6
-32
lines changed
features/cellular/framework/targets/MultiTech/DragonflyNano/PPP Expand file tree Collapse file tree 3 files changed +6
-32
lines changed Original file line number Diff line number Diff line change @@ -37,31 +37,13 @@ SARA4_PPP::~SARA4_PPP()
37
37
{
38
38
}
39
39
40
- CellularNetwork *SARA4_PPP::open_network (FileHandle *fh )
40
+ AT_CellularNetwork *SARA4_PPP::open_network_impl (ATHandler &at )
41
41
{
42
- if (!_network) {
43
- ATHandler *atHandler = get_at_handler (fh);
44
- if (atHandler) {
45
- _network = new SARA4_PPP_CellularNetwork (*atHandler);
46
- if (!_network) {
47
- release_at_handler (atHandler);
48
- }
49
- }
50
- }
51
- return _network;
42
+ return new SARA4_PPP_CellularNetwork (at);
52
43
}
53
44
54
- CellularPower *SARA4_PPP::open_power (FileHandle *fh )
45
+ AT_CellularPower *SARA4_PPP::open_power_impl (ATHandler &at )
55
46
{
56
- if (!_power) {
57
- ATHandler *atHandler = get_at_handler (fh);
58
- if (atHandler) {
59
- _power = new SARA4_PPP_CellularPower (*atHandler);
60
- if (!_power) {
61
- release_at_handler (atHandler);
62
- }
63
- }
64
- }
65
- return _power;
47
+ return new SARA4_PPP_CellularPower (at);
66
48
}
67
49
Original file line number Diff line number Diff line change @@ -29,8 +29,8 @@ class SARA4_PPP : public AT_CellularDevice {
29
29
virtual ~SARA4_PPP ();
30
30
31
31
public: // CellularDevice
32
- virtual CellularNetwork * open_network (FileHandle *fh );
33
- virtual CellularPower * open_power (FileHandle *fh );
32
+ virtual AT_CellularNetwork * open_network_impl (ATHandler &at );
33
+ virtual AT_CellularPower * open_power_impl (ATHandler &at );
34
34
};
35
35
36
36
} // namespace mbed
Original file line number Diff line number Diff line change @@ -34,15 +34,7 @@ bool SARA4_PPP_CellularNetwork::get_modem_stack_type(nsapi_ip_stack_t requested_
34
34
35
35
AT_CellularNetwork::RegistrationMode SARA4_PPP_CellularNetwork::has_registration (RegistrationType reg_type)
36
36
{
37
- // <<<<<<< HEAD
38
37
return (reg_type == C_REG || reg_type == C_GREG) ? RegistrationModeLAC : RegistrationModeDisable;
39
- // =======
40
- // #ifdef TARGET_DRAGONFLY_L471QG
41
- // return (reg_type == C_REG || reg_type == C_EREG);
42
- // #else
43
- // return (reg_type == C_REG || reg_type == C_GREG || reg_type == C_EREG);
44
- // #endif
45
- // >>>>>>> Fixed spacing/tabs and clean up targets.json
46
38
}
47
39
48
40
nsapi_error_t SARA4_PPP_CellularNetwork::set_access_technology_impl (RadioAccessTechnology opRat)
You can’t perform that action at this time.
0 commit comments