Skip to content

Commit

Permalink
[cxx]: Added virtual desctructor in I2C class
Browse files Browse the repository at this point in the history
Closes #7435
  • Loading branch information
0xjakob committed Oct 12, 2021
1 parent ba15ac8 commit 50b5ff0
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,7 @@ class I2CComposed : public I2CTransfer<std::vector<std::vector<uint8_t> > > {
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) { }
};
Expand Down

0 comments on commit 50b5ff0

Please sign in to comment.