Skip to content

Commit

Permalink
Merge pull request #2307 from particle-iot/fix/cellular_reset/ch71838
Browse files Browse the repository at this point in the history
Gen2: fixes the issue that the cellular modem is reset unexpectedly.
  • Loading branch information
XuGuohui committed Apr 27, 2021
2 parents 925f7af + c59cd49 commit 08463e6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions system/src/system_network_cellular.h
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ class CellularNetworkInterface : public ManagedIPNetworkInterface<CellularConfig
void connect_cancel(bool cancel) override {
// only cancel if presently connecting
bool require_cancel = false;
CLR_WLAN_WD();
ATOMIC_BLOCK() {
if (connecting || !SPARK_WLAN_STARTED)
{
Expand Down

0 comments on commit 08463e6

Please sign in to comment.