From 3fd026d9bb0a18c9d37d9b9a70ce3a0baebb0eb4 Mon Sep 17 00:00:00 2001 From: Siwat Sirichai Date: Fri, 29 Dec 2023 00:51:22 +0700 Subject: [PATCH] fix compilation issues --- Template Project/lib/ESPMegaPRO/AnalogCard.cpp | 5 ----- Template Project/lib/ESPMegaPRO/AnalogIoT.cpp | 4 ---- Template Project/lib/ESPMegaPRO/AnalogIoT.hpp | 2 -- 3 files changed, 11 deletions(-) diff --git a/Template Project/lib/ESPMegaPRO/AnalogCard.cpp b/Template Project/lib/ESPMegaPRO/AnalogCard.cpp index c22288b..3c6d817 100644 --- a/Template Project/lib/ESPMegaPRO/AnalogCard.cpp +++ b/Template Project/lib/ESPMegaPRO/AnalogCard.cpp @@ -45,11 +45,6 @@ bool AnalogCard::getDACState(uint8_t pin) return this->dac_state[pin]; } -uint16_t AnalogCard::getDACValue(uint8_t pin) -{ - return this->dac_value[pin]; -} - void AnalogCard::sendDataToDAC(uint8_t pin, uint16_t value) { switch (pin) diff --git a/Template Project/lib/ESPMegaPRO/AnalogIoT.cpp b/Template Project/lib/ESPMegaPRO/AnalogIoT.cpp index 75608fc..b809874 100644 --- a/Template Project/lib/ESPMegaPRO/AnalogIoT.cpp +++ b/Template Project/lib/ESPMegaPRO/AnalogIoT.cpp @@ -187,10 +187,6 @@ bool AnalogIoT::processRequestStateMessage(char *topic, char *payload, uint8_t t this->publishADCs(); return false; } -void AnalogIoT::publishReport() { - publishADCs(); - publishDACs(); -} void AnalogIoT::subscribe() { // There are 4 DACs and 8 ADCs // DACs: dac/<%02d>/set/state, dac/<%02d>/set/value, dac/publish_enable diff --git a/Template Project/lib/ESPMegaPRO/AnalogIoT.hpp b/Template Project/lib/ESPMegaPRO/AnalogIoT.hpp index 59d3501..85de6f9 100644 --- a/Template Project/lib/ESPMegaPRO/AnalogIoT.hpp +++ b/Template Project/lib/ESPMegaPRO/AnalogIoT.hpp @@ -38,8 +38,6 @@ class AnalogIoT : public IoTComponent { void publishReport(); void subscribe(); void loop(); - void publishReport(); - void subscribe(); uint8_t getType(); private: uint8_t dac_set_state_length;