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;