From 834e0597f492ddfcd7edeb6d29e09ec21a088764 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Thu, 31 Aug 2017 11:46:49 +0200 Subject: [PATCH] Add debug code for counter module --- code/espurna/config/general.h | 1 + code/espurna/espurna.ino | 3 +++ 2 files changed, 4 insertions(+) diff --git a/code/espurna/config/general.h b/code/espurna/config/general.h index 08ac3371..0a0e5512 100644 --- a/code/espurna/config/general.h +++ b/code/espurna/config/general.h @@ -376,6 +376,7 @@ PROGMEM const char* const custom_reset_string[] = { #define MQTT_TOPIC_HOSTNAME "host" #define MQTT_TOPIC_TIME "time" #define MQTT_TOPIC_ANALOG "analog" +#define MQTT_TOPIC_COUNTER "counter" #define MQTT_TOPIC_RFOUT "rfout" #define MQTT_TOPIC_RFIN "rfin" #define MQTT_TOPIC_RFLEARN "rflearn" diff --git a/code/espurna/espurna.ino b/code/espurna/espurna.ino index e9185c73..c1ffdd92 100644 --- a/code/espurna/espurna.ino +++ b/code/espurna/espurna.ino @@ -127,6 +127,9 @@ void welcome() { #if ANALOG_SUPPORT DEBUG_MSG_P(PSTR(" ANALOG")); #endif + #if COUNTER_SUPPORT + DEBUG_MSG_P(PSTR(" COUNTER")); + #endif #if DEBUG_SERIAL_SUPPORT DEBUG_MSG_P(PSTR(" DEBUG_SERIAL")); #endif