Browse Source

Fix settings rename in emon module

fastled
Xose Pérez 8 years ago
parent
commit
a662376892
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      code/src/emon.ino

+ 5
- 2
code/src/emon.ino View File

@ -38,9 +38,12 @@ unsigned int currentCallback() {
void powerMonitorSetup() {
// backwards compatibility
setSetting("emonMains", getSetting("pwMainsVoltage", EMON_MAINS_VOLTAGE));
setSetting("emonRatio", getSetting("pwCurrentRatio", EMON_CURRENT_RATIO));
String tmp;
tmp = getSetting("pwMainsVoltage", String() + EMON_MAINS_VOLTAGE);
setSetting("emonMains", tmp);
delSetting("pwMainsVoltage");
tmp = getSetting("pwCurrentRatio", String() + EMON_CURRENT_RATIO);
setSetting("emonRatio", tmp);
delSetting("pwCurrentRatio");
emon.initCurrent(


Loading…
Cancel
Save