initialize gammu only when enabled in config

This commit is contained in:
Sergey Popov 2011-12-17 19:49:12 +04:00
parent 796be414fc
commit 52b69a0196

View File

@ -106,6 +106,7 @@ void init()
hosts[i].alert_sent=false; hosts[i].alert_sent=false;
} }
// initialize gammu structures // initialize gammu structures
if (sms_send_enable)
gammu_init(); gammu_init();
} }