Skip to content

Commit

Permalink
Adding F() to serial prints where possible
Browse files Browse the repository at this point in the history
  • Loading branch information
witnessmenow committed Mar 21, 2018
1 parent 76f2cbd commit 89beefd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/UniversalTelegramBot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ bool UniversalTelegramBot::getMe() {
***************************************************************/
int UniversalTelegramBot::getUpdates(long offset) {

if (_debug) Serial.println("GET Update Messages");
if (_debug) Serial.println(F("GET Update Messages"));

String command = "bot"+_token+"/getUpdates?offset="+String(offset)+"&limit="+String(HANDLE_MESSAGES);
if(longPoll > 0) {
Expand All @@ -342,9 +342,9 @@ int UniversalTelegramBot::getUpdates(long offset) {
}
else {
if (_debug) {
Serial.print("incoming message length");
Serial.print(F("incoming message length"));
Serial.println(response.length());
Serial.println("Creating DynamicJsonBuffer");
Serial.println(F("Creating DynamicJsonBuffer"));
}

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

bool sent = false;
if (_debug) Serial.println("SEND Simple Message");
if (_debug) Serial.println(F("SEND Simple Message"));
long sttime = millis();

if (text!="") {
Expand Down

0 comments on commit 89beefd

Please sign in to comment.