From 9a0c4ab58fe0927fc95110f9782626a4e4ac8979 Mon Sep 17 00:00:00 2001 From: reaw55 <58457329+reaw55@users.noreply.github.com> Date: Sat, 9 Mar 2024 16:21:25 +0700 Subject: [PATCH] Revert "update library, CT now compiles" This reverts commit 89aac84cf8937e00469aa0aaf2eef9c9c75c6d57. --- platformio.ini | 2 +- src/main.cpp | 2 +- src/main.hpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/platformio.ini b/platformio.ini index e977df1..b8ee1dc 100644 --- a/platformio.ini +++ b/platformio.ini @@ -12,7 +12,7 @@ platform = espressif32 board = wt32-eth01 framework = arduino -lib_deps = siwats/ESPMegaPROR3@^2.3.7 +lib_deps = siwats/ESPMegaPROR3@^2.3.6 monitor_speed = 115200 build_flags = -DCORE_DEBUG_LEVEL=0 upload_port = COM32 diff --git a/src/main.cpp b/src/main.cpp index 896fe18..14819f7 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -59,7 +59,7 @@ ClimateCard climateCard_york = ClimateCard(AIR_CONDITIONER_IR_PIN, ac_york, AIR_CONDITIONER_SENSOR_TYPE, AIR_CONDITIONER_SENSOR_PIN, AIR_CONDITIONER_RMT_CHANNEL); -float adcToCurrent(uint16_t adc_value) +void adc2current(uint16_t adc_value) { // 16 bit ADC value to current in amps // ADC Range is 0-65535, It have an input range of 0-3.3V diff --git a/src/main.hpp b/src/main.hpp index 58f9919..d59c005 100644 --- a/src/main.hpp +++ b/src/main.hpp @@ -19,7 +19,7 @@ SET_LOOP_TASK_STACK_SIZE(32*1024); // Air Conditioner Configuration #define AIR_CONDITIONER_SENSOR_TYPE AC_SENSOR_TYPE_DHT22 #define AIR_CONDITIONER_SENSOR_PIN 32 -#define AIR_CONDITIONER_IR_PIN 5 +#define AIR_CONDITIONER_IR_PIN #define AIR_CONDITIONER_RMT_CHANNEL RMT_CHANNEL_0 void handleMqttMessage(char *topic, char *payload);