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

@@ -162,10 +162,16 @@ error:
at_sequence_reset(manager);
}
void modem_suspend(struct EG25Manager *manager)
void modem_suspend_pre(struct EG25Manager *manager)
{
at_sequence_suspend(manager);
}
void modem_suspend_post(struct EG25Manager *manager)
{
gpio_sequence_suspend(manager);
at_sequence_suspend(manager);
g_message("suspend sequence is over, drop inhibitor");
suspend_inhibit(manager, FALSE);
}
void modem_resume_pre(struct EG25Manager *manager)