From cfe39664d82d4a3dfb67d5bd0af7232469099233 Mon Sep 17 00:00:00 2001 From: Josef Gosch Date: Mon, 9 May 2022 22:43:36 +0200 Subject: [PATCH] Fix: It is now possible to disable delivery reports in PDU mode. --- gsmmodem/modem.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gsmmodem/modem.py b/gsmmodem/modem.py index 1272190..398b272 100644 --- a/gsmmodem/modem.py +++ b/gsmmodem/modem.py @@ -922,7 +922,7 @@ def sendSms(self, destination, text, waitForDeliveryReport=False, deliveryTimeou self.smsEncoding = 'GSM' # Encode text into PDUs - pdus = encodeSmsSubmitPdu(destination, text, reference=self._smsRef, sendFlash=sendFlash) + pdus = encodeSmsSubmitPdu(destination, text, reference=self._smsRef, requestStatusReport=self.requestDelivery, sendFlash=sendFlash) # Send SMS PDUs via AT commands for pdu in pdus: