Browse Source

Force API to return the target status of the relay (#548)

rfm69
Xose Pérez 6 years ago
parent
commit
781207b7dd
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      code/espurna/relay.ino

+ 1
- 1
code/espurna/relay.ino View File

@ -593,7 +593,7 @@ void relaySetupAPI() {
apiRegister(key,
[relayID](char * buffer, size_t len) {
snprintf_P(buffer, len, PSTR("%d"), relayStatus(relayID) ? 1 : 0);
snprintf_P(buffer, len, PSTR("%d"), _relays[relayID].target_status ? 1 : 0);
},
[relayID](const char * payload) {


Loading…
Cancel
Save