ms5611: fixed the i2c device on NuttX. This was left-over debugging noise from the POSIX bringup.

This commit is contained in:
Andrew Tridgell
2015-06-27 15:11:03 +02:00
committed by Lorenz Meier
parent c428b77512
commit 5e27b7bc31
+4 -4
View File
@@ -71,8 +71,8 @@ public:
virtual ~MS5611_I2C(); virtual ~MS5611_I2C();
virtual int init(); virtual int init();
virtual int dev_read(unsigned offset, void *data, unsigned count); virtual int read(unsigned offset, void *data, unsigned count);
virtual int dev_ioctl(unsigned operation, unsigned &arg); virtual int ioctl(unsigned operation, unsigned &arg);
#ifdef __PX4_NUTTX #ifdef __PX4_NUTTX
protected: protected:
@@ -139,7 +139,7 @@ MS5611_I2C::init()
} }
int int
MS5611_I2C::dev_read(unsigned offset, void *data, unsigned count) MS5611_I2C::read(unsigned offset, void *data, unsigned count)
{ {
union _cvt { union _cvt {
uint8_t b[4]; uint8_t b[4];
@@ -162,7 +162,7 @@ MS5611_I2C::dev_read(unsigned offset, void *data, unsigned count)
} }
int int
MS5611_I2C::dev_ioctl(unsigned operation, unsigned &arg) MS5611_I2C::ioctl(unsigned operation, unsigned &arg)
{ {
int ret; int ret;