From 77aff42a27473611bbbf5a11f0e7100cf2c21aa6 Mon Sep 17 00:00:00 2001 From: 1technophile Date: Fri, 2 Jun 2017 23:44:53 +0200 Subject: [PATCH] code size decrease --- ZgatewayIR.ino | 8 ++++---- ZgatewayRF.ino | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ZgatewayIR.ino b/ZgatewayIR.ino index 9e250e8..91dca9c 100644 --- a/ZgatewayIR.ino +++ b/ZgatewayIR.ino @@ -51,7 +51,7 @@ boolean IRtoMQTT(){ decode_results results; if (irrecv.decode(&results)){ - trc(F("Receiving IR signal")); + trc(F("Receiving IR")); unsigned long MQTTvalue = 0; String MQTTprotocol; String MQTTbits; @@ -67,7 +67,7 @@ boolean IRtoMQTT(){ trc(rawCode); irrecv.resume(); // Receive the next value if (pubIRunknownPrtcl == false && MQTTprotocol == "-1"){ // don't publish unknown IR protocol - trc(F("--------------don't publish the received code unknown protocol--------------")); + trc(F("---don't publish the received code unknown protocol---")); } else if (!isAduplicate(MQTTvalue) && MQTTvalue!=0) {// conditions to avoid duplications of RF -->MQTT trc(F("Sending adv data to MQTT")); client.publish(subjectIRtoMQTTprotocol,(char *)MQTTprotocol.c_str()); @@ -78,7 +78,7 @@ boolean IRtoMQTT(){ trc(value); boolean result = client.publish(subjectIRtoMQTT,(char *)value.c_str()); if (repeatIRwMQTT){ - trc(F("Publishing IR signal so as to repeat it")); + trc(F("Publishing IR so as to repeat it")); client.publish(subjectMQTTtoIR,(char *)value.c_str()); } return result; @@ -241,7 +241,7 @@ void MQTTtoIR(char * topicOri, char * datacallback) { if (signalSent){ // we acknowledge the sending by publishing the value to an acknowledgement topic, for the moment even if it is a signal repetition we acknowledge also boolean result = client.publish(subjectGTWIRtoMQTT, datacallback); if (result){ - trc(F("Signal sent by IR and ack published")); + trc(F("Signal sent by IR ack published")); trc(String(data)); }; } diff --git a/ZgatewayRF.ino b/ZgatewayRF.ino index e43c00c..16cf6ec 100644 --- a/ZgatewayRF.ino +++ b/ZgatewayRF.ino @@ -43,7 +43,7 @@ void setupRF(){ boolean RFtoMQTT(){ if (mySwitch.available()){ - trc(F("Receiving 433Mhz signal")); + trc(F("Receiving 433Mhz")); unsigned long MQTTvalue = 0; String MQTTprotocol; String MQTTbits;