fix compilation issues

This commit is contained in:
Siwat Sirichai 2023-12-29 00:51:22 +07:00
parent 544e930a3a
commit 3fd026d9bb
3 changed files with 0 additions and 11 deletions

View File

@ -45,11 +45,6 @@ bool AnalogCard::getDACState(uint8_t pin)
return this->dac_state[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) void AnalogCard::sendDataToDAC(uint8_t pin, uint16_t value)
{ {
switch (pin) switch (pin)

View File

@ -187,10 +187,6 @@ bool AnalogIoT::processRequestStateMessage(char *topic, char *payload, uint8_t t
this->publishADCs(); this->publishADCs();
return false; return false;
} }
void AnalogIoT::publishReport() {
publishADCs();
publishDACs();
}
void AnalogIoT::subscribe() { void AnalogIoT::subscribe() {
// There are 4 DACs and 8 ADCs // There are 4 DACs and 8 ADCs
// DACs: dac/<%02d>/set/state, dac/<%02d>/set/value, dac/publish_enable // DACs: dac/<%02d>/set/state, dac/<%02d>/set/value, dac/publish_enable

View File

@ -38,8 +38,6 @@ class AnalogIoT : public IoTComponent {
void publishReport(); void publishReport();
void subscribe(); void subscribe();
void loop(); void loop();
void publishReport();
void subscribe();
uint8_t getType(); uint8_t getType();
private: private:
uint8_t dac_set_state_length; uint8_t dac_set_state_length;