From 2885a86ef9adf48a2f0319b4f2c52c983d24a348 Mon Sep 17 00:00:00 2001 From: 1technophile Date: Sat, 16 Sep 2017 15:33:44 +0200 Subject: [PATCH] some minor code cleaning --- ZgatewayRF2.ino | 1 - ZgatewayRFM69.ino | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/ZgatewayRF2.ino b/ZgatewayRF2.ino index cb20816..467fc4f 100644 --- a/ZgatewayRF2.ino +++ b/ZgatewayRF2.ino @@ -51,7 +51,6 @@ void MQTTtoRF2(char * topicOri, char * datacallback) { long valueCODE = 0; int valueUNIT = -1; int valuePERIOD = 0; - int valueBIT = 0; int pos = topic.lastIndexOf(RF2codeKey); if (pos != -1){ diff --git a/ZgatewayRFM69.ino b/ZgatewayRFM69.ino index bda25c2..50c026d 100644 --- a/ZgatewayRFM69.ino +++ b/ZgatewayRFM69.ino @@ -195,8 +195,7 @@ if ((topic == subjectMQTTtoRFM69) && (valueRCV == defaultRFM69ReceiverId)){ // Acknowledgement to the GTWRF topic boolean result = client.publish(subjectGTWRFM69toMQTT, datacallback); if (result)trc(F("Ack published")); - return true; - break; + return true; } else { Serial.print("!");