[cxx]: Added virtual desctructor in I2C class

Closes https://github.com/espressif/esp-idf/issues/7435
This commit is contained in:
Jakob Hasse 2021-10-09 12:03:00 +08:00
parent ba15ac8634
commit 50b5ff058c

View File

@ -419,6 +419,7 @@ protected:
private:
class CompTransferNode {
public:
virtual ~CompTransferNode() = default;
virtual void queue_cmd(i2c_cmd_handle_t handle, uint8_t i2c_addr) = 0;
virtual void process_result(std::vector<std::vector<uint8_t> > &read_results) { }
};