From 8665f8a4a6a6742aed68e1ba50e23f625ba28d0b Mon Sep 17 00:00:00 2001 From: Rafael Diniz Date: Thu, 23 Dec 2021 21:12:24 +0300 Subject: [PATCH] Fix compile error when not using Modem Manager. --- src/suspend.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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; }