We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aaf4edc commit 350d791Copy full SHA for 350d791
features/cellular/framework/targets/QUECTEL/BG96/QUECTEL_BG96.cpp
@@ -40,7 +40,13 @@ QUECTEL_BG96::~QUECTEL_BG96()
40
CellularNetwork *QUECTEL_BG96::open_network(FileHandle *fh)
41
{
42
if (!_network) {
43
- _network = new QUECTEL_BG96_CellularNetwork(*get_at_handler(fh));
+ ATHandler *atHandler = get_at_handler(fh);
44
+ if (atHandler) {
45
+ _network = new QUECTEL_BG96_CellularNetwork(*atHandler);
46
+ if (!_network) {
47
+ release_at_handler(atHandler);
48
+ }
49
50
}
51
return _network;
52
0 commit comments