destructors for I2C and SPI should be virtual.

This commit is contained in:
px4dev 2013-07-14 11:42:56 -07:00
parent 28f996b026
commit 7c83e928a5
2 changed files with 2 additions and 2 deletions

View File

@ -88,7 +88,7 @@ protected:
uint16_t address,
uint32_t frequency,
int irq = 0);
~I2C();
virtual ~I2C();
virtual int init();

View File

@ -71,7 +71,7 @@ protected:
enum spi_mode_e mode,
uint32_t frequency,
int irq = 0);
~SPI();
virtual ~SPI();
virtual int init();