Fix compile error when not using Modem Manager.

This commit is contained in:
Rafael Diniz
2021-12-23 21:12:24 +03:00
parent 88c68b9933
commit 8665f8a4a6

View File

@@ -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 {
return FALSE;
}
#endif
g_message("Modem wasn't probed in time, restart it!");
modem_reset(manager);
}
return FALSE;
}