mirror of
https://gitlab.com/mobian1/eg25-manager.git
synced 2025-08-30 07:42:23 +02:00
manager: only toggle GPIOs for suspend after executing all AT commands
This commit is contained in:
3
src/at.c
3
src/at.c
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user