diff options
author | px4dev <px4@purgatory.org> | 2013-08-04 19:48:20 -0700 |
---|---|---|
committer | px4dev <px4@purgatory.org> | 2013-08-04 19:48:20 -0700 |
commit | 4b4f33e6a4fb18047a6ca73d3a4872a900519b5c (patch) | |
tree | c8580715886028dcea9e7e3d8ea11e6a677f25fe /src/drivers/device/spi.h | |
parent | 567f621754f1f68ed0aae560e9590805045fa3e0 (diff) | |
download | px4-firmware-4b4f33e6a4fb18047a6ca73d3a4872a900519b5c.tar.gz px4-firmware-4b4f33e6a4fb18047a6ca73d3a4872a900519b5c.tar.bz2 px4-firmware-4b4f33e6a4fb18047a6ca73d3a4872a900519b5c.zip |
Add direct-access methods to the base Device class, so that there's a common way of talking to drivers regardless of which of the specialised classes they derive from.
Make the Device destructor public and virtual, so that arbitrary devices can be deleted. Likewise for classes that derive from it.
Make Device::init public so that arbitrary devices can be initialised after being returned by factories.
Diffstat (limited to 'src/drivers/device/spi.h')
-rw-r--r-- | src/drivers/device/spi.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/device/spi.h b/src/drivers/device/spi.h index d2d01efb3..e0122372a 100644 --- a/src/drivers/device/spi.h +++ b/src/drivers/device/spi.h @@ -71,7 +71,7 @@ protected: enum spi_mode_e mode, uint32_t frequency, int irq = 0); - ~SPI(); + virtual ~SPI(); virtual int init(); |