sms_functions: Fixed modem not being set in the send_sms

This commit is contained in:
Pavel Valach 2021-09-03 01:05:34 +02:00
parent 800cf62d04
commit ec4236c58f

View File

@ -102,7 +102,7 @@ def send_sms(recipients, smsstring):
# Assemble SMS
logger.info("Sending SMS: %s", smsstring)
unlock_and_enable_modem()
modem = unlock_and_enable_modem()
# test sending SMS
modem_msg = modem['org.freedesktop.ModemManager1.Modem.Messaging']