From 5e091ec5a969ef6acbbb4d59b2713cd3f44bfe43 Mon Sep 17 00:00:00 2001 From: Max Prokhorov Date: Sun, 30 Jun 2019 01:29:54 +0300 Subject: [PATCH] Relay: drop legacy settings migration (#1797) --- code/espurna/relay.ino | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/code/espurna/relay.ino b/code/espurna/relay.ino index 8f3eb5e6..8af50281 100644 --- a/code/espurna/relay.ino +++ b/code/espurna/relay.ino @@ -502,21 +502,6 @@ void _relayBackwards() { 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(); - if (relayPulseMode == RELAY_PULSE_NONE) relayPulseTime = 0; - - for (unsigned int i=0; i<_relays.size(); i++) { - if (!hasSetting("relayBoot", i)) setSetting("relayBoot", i, relayMode); - if (!hasSetting("relayPulse", i)) setSetting("relayPulse", i, relayPulseMode); - if (!hasSetting("relayTime", i)) setSetting("relayTime", i, relayPulseTime); - } - - delSetting("relayMode"); - delSetting("relayPulseMode"); - delSetting("relayPulseTime"); - } void _relayBoot() {