|
@ -40,10 +40,8 @@ void powerMonitorSetup() { |
|
|
// backwards compatibility
|
|
|
// backwards compatibility
|
|
|
setSetting("emonMains", getSetting("pwMainsVoltage", EMON_MAINS_VOLTAGE)); |
|
|
setSetting("emonMains", getSetting("pwMainsVoltage", EMON_MAINS_VOLTAGE)); |
|
|
setSetting("emonRatio", getSetting("pwCurrentRatio", EMON_CURRENT_RATIO)); |
|
|
setSetting("emonRatio", getSetting("pwCurrentRatio", EMON_CURRENT_RATIO)); |
|
|
setSetting("emonPowerTopic", getSetting("emonPowerTopic", EMON_POWER_TOPIC)); |
|
|
|
|
|
delSetting("pwMainsVoltage"); |
|
|
delSetting("pwMainsVoltage"); |
|
|
delSetting("pwCurrentRatio"); |
|
|
delSetting("pwCurrentRatio"); |
|
|
delSetting("emonPowerTopic"); |
|
|
|
|
|
|
|
|
|
|
|
emon.initCurrent( |
|
|
emon.initCurrent( |
|
|
currentCallback, |
|
|
currentCallback, |
|
|