From 73f65b3f15903079854d55ab92d6293cc349cae8 Mon Sep 17 00:00:00 2001 From: Max Prokhorov Date: Tue, 4 Jun 2019 19:56:35 +0300 Subject: [PATCH] Disable Serial for hardware using TX or RX pins --- code/espurna/config/hardware.h | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/code/espurna/config/hardware.h b/code/espurna/config/hardware.h index 839f07c3..fda08412 100644 --- a/code/espurna/config/hardware.h +++ b/code/espurna/config/hardware.h @@ -2071,6 +2071,9 @@ #define HLW8012_CURRENT_R 0.002 // Current resistor #define HLW8012_VOLTAGE_R_UP ( 2 * 1000000 ) // Upstream voltage resistor + // LED1 on RX pin + #define DEBUG_SERIAL_SUPPORT 1 + // ----------------------------------------------------------------------------- // Maxcio W-DE004 // ----------------------------------------------------------------------------- @@ -2489,11 +2492,11 @@ #define LED1_PIN 1 #define LED1_PIN_INVERSE 1 - // ----------------------------------------------------------------------------- - // Allnet 4duino ESP8266-UP-Relais - // http://www.allnet.de/de/allnet-brand/produkte/neuheiten/p/allnet-4duino-iot-wlan-relais-unterputz-esp8266-up-relais/ - // https://shop.allnet.de/fileadmin/transfer/products/148814.pdf - // ----------------------------------------------------------------------------- +// ----------------------------------------------------------------------------- +// Allnet 4duino ESP8266-UP-Relais +// http://www.allnet.de/de/allnet-brand/produkte/neuheiten/p/allnet-4duino-iot-wlan-relais-unterputz-esp8266-up-relais/ +// https://shop.allnet.de/fileadmin/transfer/products/148814.pdf +// ----------------------------------------------------------------------------- #elif defined(ALLNET_4DUINO_IOT_WLAN_RELAIS) @@ -2799,6 +2802,9 @@ #define HLW8012_POWER_RATIO 3414290 #define HLW8012_INTERRUPT_ON FALLING + // BUTTON1 and LED1 are using Serial pins + #define DEBUG_SERIAL_SUPPORT 0 + // ----------------------------------------------------------------------------- // Teckin SP22 v1.4 - v1.6 // ----------------------------------------------------------------------------- @@ -2840,6 +2846,9 @@ #define HLW8012_POWER_RATIO 2533110 #define HLW8012_INTERRUPT_ON FALLING + // BUTTON1 and LED1 are using Serial pins + #define DEBUG_SERIAL_SUPPORT 0 + // ----------------------------------------------------------------------------- // Several boards under different names uing a power chip labelled BL0937 or HJL-01 // Also model number KS-602S @@ -2864,6 +2873,9 @@ #define LED1_PIN 1 #define LED1_PIN_INVERSE 1 + // LED1 is using TX pin + #define DEBUG_SERIAL_SUPPORT 0 + // ---------------------------------------------------------------------------------------- // Homecube 16A is similar but some pins differ and it also has RGB LEDs // https://www.amazon.de/gp/product/B07D7RVF56/ref=oh_aui_detailpage_o00_s01?ie=UTF8&psc=1 @@ -3441,7 +3453,7 @@ // Teckin SP20 // ----------------------------------------------------------------------------- - #elif defined(TECKIN_SP20) +#elif defined(TECKIN_SP20) // Info #define MANUFACTURER "TECKIN"