Skip to content

Commit 89beefd

Browse files
committed
Adding F() to serial prints where possible
1 parent 76f2cbd commit 89beefd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/UniversalTelegramBot.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ bool UniversalTelegramBot::getMe() {
326326
***************************************************************/
327327
int UniversalTelegramBot::getUpdates(long offset) {
328328

329-
if (_debug) Serial.println("GET Update Messages");
329+
if (_debug) Serial.println(F("GET Update Messages"));
330330

331331
String command = "bot"+_token+"/getUpdates?offset="+String(offset)+"&limit="+String(HANDLE_MESSAGES);
332332
if(longPoll > 0) {
@@ -342,9 +342,9 @@ int UniversalTelegramBot::getUpdates(long offset) {
342342
}
343343
else {
344344
if (_debug) {
345-
Serial.print("incoming message length");
345+
Serial.print(F("incoming message length"));
346346
Serial.println(response.length());
347-
Serial.println("Creating DynamicJsonBuffer");
347+
Serial.println(F("Creating DynamicJsonBuffer"));
348348
}
349349

350350
// Parse response into Json object
@@ -471,7 +471,7 @@ bool UniversalTelegramBot::processResult(JsonObject& result, int messageIndex) {
471471
bool UniversalTelegramBot::sendSimpleMessage(String chat_id, String text, String parse_mode) {
472472

473473
bool sent = false;
474-
if (_debug) Serial.println("SEND Simple Message");
474+
if (_debug) Serial.println(F("SEND Simple Message"));
475475
long sttime = millis();
476476

477477
if (text!="") {

0 commit comments

Comments
 (0)