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.
2 parents a176bcb + 3286472 commit 34eefb4Copy full SHA for 34eefb4
features/cellular/framework/AT/AT_CellularBase.cpp
@@ -34,7 +34,7 @@ device_err_t AT_CellularBase::get_device_error() const
34
return _at.get_last_device_error();
35
}
36
37
-const intptr_t *AT_CellularBase::_property_array;
+const intptr_t *AT_CellularBase::_property_array = NULL;
38
39
void AT_CellularBase::set_cellular_properties(const intptr_t *property_array)
40
{
@@ -48,5 +48,9 @@ void AT_CellularBase::set_cellular_properties(const intptr_t *property_array)
48
49
intptr_t AT_CellularBase::get_property(CellularProperty key)
50
51
- return _property_array[key];
+ if (_property_array) {
52
+ return _property_array[key];
53
+ } else {
54
+ return NULL;
55
+ }
56
0 commit comments