manager: only toggle GPIOs for suspend after executing all AT commands

This commit is contained in:
Arnaud Ferraris
2020-12-30 16:20:32 +01:00
parent d990ab667e
commit abc05e86e5
4 changed files with 12 additions and 6 deletions

View File

@@ -80,8 +80,7 @@ static gboolean send_at_command(struct EG25Manager *manager)
else
manager->modem_state = EG25_STATE_CONFIGURED;
} else if (manager->modem_state == EG25_STATE_SUSPENDING) {
g_message("suspend sequence is over, drop inhibitor");
suspend_inhibit(manager, FALSE);
modem_suspend_post(manager);
} else if (manager->modem_state == EG25_STATE_RESETTING) {
manager->modem_state = EG25_STATE_POWERED;
}