Browse Source

Return target state in relay terminal command

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

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

@ -802,7 +802,7 @@ void _relayInitCommands() {
relayStatus(id, value == 1); relayStatus(id, value == 1);
} }
} }
DEBUG_MSG_P(PSTR("Status: %s\n"), relayStatus(id) ? "true" : "false");
DEBUG_MSG_P(PSTR("Status: %s\n"), _relays[id].target_status ? "true" : "false");
DEBUG_MSG_P(PSTR("+OK\n")); DEBUG_MSG_P(PSTR("+OK\n"));
}); });


Loading…
Cancel
Save