forked from Archive/PX4-Autopilot
destructors for I2C and SPI should be virtual.
This commit is contained in:
parent
28f996b026
commit
7c83e928a5
|
@ -88,7 +88,7 @@ protected:
|
|||
uint16_t address,
|
||||
uint32_t frequency,
|
||||
int irq = 0);
|
||||
~I2C();
|
||||
virtual ~I2C();
|
||||
|
||||
virtual int init();
|
||||
|
||||
|
|
|
@ -71,7 +71,7 @@ protected:
|
|||
enum spi_mode_e mode,
|
||||
uint32_t frequency,
|
||||
int irq = 0);
|
||||
~SPI();
|
||||
virtual ~SPI();
|
||||
|
||||
virtual int init();
|
||||
|
||||
|
|
Loading…
Reference in New Issue