Browse Source

Merge pull request #1520 from clabnet/dev

#1519 Esp-01 + 2ch 5v relay LC tech Exclusive relay on
sensors
Xose Pérez 5 years ago
committed by GitHub
parent
commit
1874f28dc4
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      code/espurna/relay.ino

+ 5
- 0
code/espurna/relay.ino View File

@ -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


Loading…
Cancel
Save