diff --git a/src/suspend.c b/src/suspend.c index 190d48d..9485598 100644 --- a/src/suspend.c +++ b/src/suspend.c @@ -28,12 +28,15 @@ static gboolean check_modem_resume(struct EG25Manager *manager) { manager->modem_recovery_timer = 0; +#ifdef HAVE_MMGLIB if (manager->mm_modem) { resume_ok(manager); - } else { - g_message("Modem wasn't probed in time, restart it!"); - modem_reset(manager); + return FALSE; } +#endif + + g_message("Modem wasn't probed in time, restart it!"); + modem_reset(manager); return FALSE; }