From 99d4455e4a61e4ede25e5a5a740688c599829a11 Mon Sep 17 00:00:00 2001 From: AlbertWeterings <36169962+AlbertWeterings@users.noreply.github.com> Date: Wed, 21 Feb 2018 08:42:41 +0100 Subject: [PATCH] Changed from hardware to feature --- code/espurna/config/hardware.h | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/code/espurna/config/hardware.h b/code/espurna/config/hardware.h index ea646480..13d7d98a 100644 --- a/code/espurna/config/hardware.h +++ b/code/espurna/config/hardware.h @@ -1421,27 +1421,19 @@ #define RELAY8_PIN 15 #define RELAY8_TYPE RELAY_TYPE_NORMAL -// ----------------------------------------------------------------------------- -#elif defined(UARTtoMQTT) +#endif - // Info - #define MANUFACTURER "Albert" - #define DEVICE "UARTtoMQTT_experiment" +#if defined(UART_MQTT_SUPPORT) + // Set baudrate on serial line #define SERIAL_BAUDRATE 115200 + // MQTT support is mandatory + #define MQTT_SUPPORT 1 + // Remove UART noise on serial line #define TERMINAL_SUPPORT 0 #define DEBUG_SERIAL_SUPPORT 0 - // Buttons - #define BUTTON1_PIN 0 - #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH - - // LEDs - #define LED1_PIN 2 - #define LED1_PIN_INVERSE 1 -// ----------------------------------------------------------------------------- - #endif // -----------------------------------------------------------------------------