Browse Source

replace mqttGroupInv with mqttGroupSync

rules-rpn
Max Prokhorov 5 years ago
parent
commit
d47859f2ae
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      code/espurna/relay.ino

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

@ -478,6 +478,12 @@ unsigned char relayParsePayload(const char * payload) {
// BACKWARDS COMPATIBILITY
void _relayBackwards() {
for (unsigned int i=0; i<_relays.size(); i++) {
if (!hasSetting("mqttGroupInv", i)) continue;
setSetting("mqttGroupSync", i, getSetting("mqttGroupInv", i));
delSetting("mqttGroupInv", i);
}
byte relayMode = getSetting("relayMode", RELAY_BOOT_MODE).toInt();
byte relayPulseMode = getSetting("relayPulseMode", RELAY_PULSE_MODE).toInt();
float relayPulseTime = getSetting("relayPulseTime", RELAY_PULSE_TIME).toFloat();


Loading…
Cancel
Save