Skip to content

Commit

Permalink
Merge pull request #1765 from mcspr/gpio/serial-debug
Browse files Browse the repository at this point in the history
Disable Serial log for hardware using TX or RX pins
  • Loading branch information
xoseperez authored Jun 9, 2019
2 parents c57a0ab + 73f65b3 commit 668dabe
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions code/espurna/config/hardware.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
// -----------------------------------------------------------------------------
Expand Down Expand Up @@ -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)

Expand Down Expand Up @@ -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
// -----------------------------------------------------------------------------
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -3441,7 +3453,7 @@
// Teckin SP20
// -----------------------------------------------------------------------------

#elif defined(TECKIN_SP20)
#elif defined(TECKIN_SP20)

// Info
#define MANUFACTURER "TECKIN"
Expand Down

0 comments on commit 668dabe

Please sign in to comment.