Skip to content

Commit

Permalink
MQTT/Domoticz fix
Browse files Browse the repository at this point in the history
  • Loading branch information
karmacoma92 committed Dec 8, 2019
1 parent 54869df commit 3216a37
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions code/espurna/config/version.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#define APP_NAME "ESPURNA"
#define APP_VERSION "1.14.0.PA4-dev"
#define APP_REVISION "191130"
#define APP_VERSION "1.14.0.PA5-dev"
#define APP_REVISION "191208"
#define APP_AUTHOR "xose.perez@gmail.com"
#define APP_WEBSITE "http://tinkerman.cat"
#define CFG_VERSION 3
6 changes: 4 additions & 2 deletions code/espurna/domoticz.ino
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,14 @@ void _domoticzMqttSubscribe(bool value) {
}

bool _domoticzStatus(unsigned char id) {
if (id >= _dcz_relay_state.size()) return false;
//reeopp
//if (id >= _dcz_relay_state.size()) return false;
return _dcz_relay_state[id];
}

void _domoticzStatus(unsigned char id, bool status) {
if (id >= _dcz_relay_state.size()) return;
//reeopp
//if (id >= _dcz_relay_state.size()) return;
_dcz_relay_state[id] = status;
relayStatus(id, status);
}
Expand Down

0 comments on commit 3216a37

Please sign in to comment.