From edabe2d15c807b6f07909d8e4c807d61540bb59a Mon Sep 17 00:00:00 2001 From: Sebastien Boyron Date: Mon, 30 Nov 2020 10:44:20 +0100 Subject: [PATCH] Remove trailing \r at the end of SMS (char)26 of ctrl+Z is terminating the SMS. Adding a \r is send inside the SMS itself so the message finish with a newline that was not in the original string passed to send function. I think it's more relevant to remove this line to let the user sending the exact message he needs to. *This has been tested on my SIM800c. --- src/GSMSimSMS.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/GSMSimSMS.cpp b/src/GSMSimSMS.cpp index 5b227c4..841105e 100644 --- a/src/GSMSimSMS.cpp +++ b/src/GSMSimSMS.cpp @@ -133,7 +133,6 @@ bool GSMSimSMS::send(char* number, char* message) { _readSerial(); str += _buffer; gsm.print(message); - gsm.print("\r"); //change delay 100 to readserial //_buffer += _readSerial(); _readSerial(); @@ -472,4 +471,4 @@ bool GSMSimSMS::deleteAll() { else { return false; } -} \ No newline at end of file +}