diff --git a/platformio.ini b/platformio.ini index 47341f7..91531eb 100644 --- a/platformio.ini +++ b/platformio.ini @@ -12,6 +12,6 @@ platform = espressif32 board = wt32-eth01 framework = arduino -lib_deps = siwats/ESPMegaPROR3@^2.5.1 +lib_deps = siwats/ESPMegaPROR3@^2.5.3 monitor_speed = 115200 build_flags = -DCORE_DEBUG_LEVEL=5 \ No newline at end of file diff --git a/src/main.cpp b/src/main.cpp index f51fc29..340f39d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -12,7 +12,7 @@ AnalogCard analogCard = AnalogCard(); float voltage = 220.0; float adc2current(uint16_t adc_val) { - return adc_val * 0.707; + return adc_val * 1.0; } #define CT_INTERVAL 5000 @@ -92,6 +92,7 @@ void setup() Serial.print("boot_state.txt=\"Core Initializing . . .\""); sendStopBytes(); espmega.begin(); + espmega.inputs.loop(); // if (clear_fram) // { // Serial.print("boot_state.txt=\"Factory Resetting . . .\"");