MPU9250 driver fix to preserve bus+device plug-and-play capabilities (#11020)

This commit is contained in:
Jacob Dahl
2019-01-03 08:10:23 -05:00
committed by Daniel Agar
parent 3c246ce170
commit a492d1cfdb
7 changed files with 130 additions and 172 deletions
+2 -2
View File
@@ -63,7 +63,7 @@
#define MPU9250_LOW_SPI_BUS_SPEED 1000*1000
#define MPU9250_HIGH_SPI_BUS_SPEED 20*1000*1000
device::Device *MPU9250_SPI_interface(int bus, int device_type, uint32_t cs, bool external_bus);
device::Device *MPU9250_SPI_interface(int bus, uint32_t cs, bool external_bus);
class MPU9250_SPI : public device::SPI
{
@@ -84,7 +84,7 @@ private:
};
device::Device *
MPU9250_SPI_interface(int bus, int device_type, uint32_t cs, bool external_bus)
MPU9250_SPI_interface(int bus, uint32_t cs, bool external_bus)
{
device::Device *interface = nullptr;