From 1f29205677c2bae0361eb68e8c5040d6d1715408 Mon Sep 17 00:00:00 2001 From: Claudio Barca Date: Sat, 2 Feb 2019 12:21:50 +0100 Subject: [PATCH] #1519 Esp-01 + 2ch 5v relay LC tech Exclusive relay on --- code/espurna/relay.ino | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/espurna/relay.ino b/code/espurna/relay.ino index 87514dfc..fa9fe407 100644 --- a/code/espurna/relay.ino +++ b/code/espurna/relay.ino @@ -83,6 +83,11 @@ void _relayProviderStatus(unsigned char id, bool status) { Serial.write(id + 1); Serial.write(status); Serial.write(0xA1 + status + id); + + // The serial init are not full recognized by relais board. + // References: https://github.com/xoseperez/espurna/issues/1519 , https://github.com/xoseperez/espurna/issues/1130 + delay(100); + Serial.flush(); #endif