From ee46de9ca93a5eebfd55980649fa950e5725d00a Mon Sep 17 00:00:00 2001 From: 1technophile Date: Tue, 2 Jan 2018 22:26:37 +0100 Subject: [PATCH] Adding some traces for SRFB debugging --- OpenMQTTGateway.ino | 3 +++ ZgatewaySRFB.ino | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/OpenMQTTGateway.ino b/OpenMQTTGateway.ino index 0ee4dbf..053d5cc 100644 --- a/OpenMQTTGateway.ino +++ b/OpenMQTTGateway.ino @@ -215,6 +215,9 @@ void setup() #ifdef ZgatewayRF2 setupRF2(); #endif + #ifdef ZgatewaySRFB + setupSRFB(); + #endif #ifdef ZgatewayBT setupBT(); #endif diff --git a/ZgatewaySRFB.ino b/ZgatewaySRFB.ino index e80cdb5..5d1781d 100644 --- a/ZgatewaySRFB.ino +++ b/ZgatewaySRFB.ino @@ -34,6 +34,11 @@ unsigned char _uartbuf[RF_MESSAGE_SIZE+3] = {0}; unsigned char _uartpos = 0; +void setupSRFB(){ + trc(F("ZgatewaySRFB setup done ")); + trc("Serial Baud" + SERIAL_BAUD); +} + void MQTTtoSRFB(char * topicOri, char * datacallback) { // RF DATA ANALYSIS