Skip to content

Commit 77aff42

Browse files
committed
code size decrease
1 parent 9481bcd commit 77aff42

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

ZgatewayIR.ino

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ boolean IRtoMQTT(){
5151
decode_results results;
5252

5353
if (irrecv.decode(&results)){
54-
trc(F("Receiving IR signal"));
54+
trc(F("Receiving IR"));
5555
unsigned long MQTTvalue = 0;
5656
String MQTTprotocol;
5757
String MQTTbits;
@@ -67,7 +67,7 @@ boolean IRtoMQTT(){
6767
trc(rawCode);
6868
irrecv.resume(); // Receive the next value
6969
if (pubIRunknownPrtcl == false && MQTTprotocol == "-1"){ // don't publish unknown IR protocol
70-
trc(F("--------------don't publish the received code unknown protocol--------------"));
70+
trc(F("---don't publish the received code unknown protocol---"));
7171
} else if (!isAduplicate(MQTTvalue) && MQTTvalue!=0) {// conditions to avoid duplications of RF -->MQTT
7272
trc(F("Sending adv data to MQTT"));
7373
client.publish(subjectIRtoMQTTprotocol,(char *)MQTTprotocol.c_str());
@@ -78,7 +78,7 @@ boolean IRtoMQTT(){
7878
trc(value);
7979
boolean result = client.publish(subjectIRtoMQTT,(char *)value.c_str());
8080
if (repeatIRwMQTT){
81-
trc(F("Publishing IR signal so as to repeat it"));
81+
trc(F("Publishing IR so as to repeat it"));
8282
client.publish(subjectMQTTtoIR,(char *)value.c_str());
8383
}
8484
return result;
@@ -241,7 +241,7 @@ void MQTTtoIR(char * topicOri, char * datacallback) {
241241
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
242242
boolean result = client.publish(subjectGTWIRtoMQTT, datacallback);
243243
if (result){
244-
trc(F("Signal sent by IR and ack published"));
244+
trc(F("Signal sent by IR ack published"));
245245
trc(String(data));
246246
};
247247
}

ZgatewayRF.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ void setupRF(){
4343
boolean RFtoMQTT(){
4444

4545
if (mySwitch.available()){
46-
trc(F("Receiving 433Mhz signal"));
46+
trc(F("Receiving 433Mhz"));
4747
unsigned long MQTTvalue = 0;
4848
String MQTTprotocol;
4949
String MQTTbits;

0 commit comments

Comments
 (0)