Skip to content

Commit

Permalink
Fix regression where reset would never be called
Browse files Browse the repository at this point in the history
Introduced in 50ef31b

Fixes #10

CL: pppos: Fix regression where reset would never be called
  • Loading branch information
rojer committed Jun 18, 2019
1 parent c0c3b90 commit d495b92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mgos_pppos.c
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ static void mgos_pppos_dispatch_once(struct mgos_pppos_data *pd) {
}
/* Reset modem if it's possible and we're not currently connected
* (executing in-band user command). */
if (pd->net_status == MGOS_NET_EV_DISCONNECTED &&
if (pd->net_status == MGOS_NET_EV_CONNECTING &&
(pd->cfg->rst_gpio >= 0 &&
(pd->attempt == 1 || pd->cfg->rst_mode == 1))) {
mgos_pppos_set_state(pd, PPPOS_RESET);
Expand Down

0 comments on commit d495b92

Please sign in to comment.