From 7e24ec12d921e7d302163be55c6b8134e8b9418e Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Wed, 3 May 2017 15:42:22 -1000 Subject: [PATCH] lps25h:spi_dev_e is now uint32_t in NuttX Using new type of uint32_t for spi device --- src/drivers/lps25h/lps25h_spi.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/drivers/lps25h/lps25h_spi.cpp b/src/drivers/lps25h/lps25h_spi.cpp index 421ff68bc9..aad95f44da 100644 --- a/src/drivers/lps25h/lps25h_spi.cpp +++ b/src/drivers/lps25h/lps25h_spi.cpp @@ -73,7 +73,7 @@ device::Device *LPS25H_SPI_interface(int bus); class LPS25H_SPI : public device::SPI { public: - LPS25H_SPI(int bus, spi_dev_e device); + LPS25H_SPI(int bus, uint32_t device); virtual ~LPS25H_SPI(); virtual int init(); @@ -87,10 +87,10 @@ public: device::Device * LPS25H_SPI_interface(int bus) { - return new LPS25H_SPI(bus, (spi_dev_e)PX4_SPIDEV_HMC); + return new LPS25H_SPI(bus, PX4_SPIDEV_HMC); } -LPS25H_SPI::LPS25H_SPI(int bus, spi_dev_e device) : +LPS25H_SPI::LPS25H_SPI(int bus, uint32_t device) : SPI("LPS25H_SPI", nullptr, bus, device, SPIDEV_MODE3, 11 * 1000 * 1000 /* will be rounded to 10.4 MHz */) { _device_id.devid_s.devtype = DRV_MAG_DEVTYPE_LPS25H;