forked from Archive/PX4-Autopilot
ms5611: fixed the i2c device on NuttX. This was left-over debugging noise from the POSIX bringup.
This commit is contained in:
parent
c428b77512
commit
5e27b7bc31
|
@ -71,8 +71,8 @@ public:
|
|||
virtual ~MS5611_I2C();
|
||||
|
||||
virtual int init();
|
||||
virtual int dev_read(unsigned offset, void *data, unsigned count);
|
||||
virtual int dev_ioctl(unsigned operation, unsigned &arg);
|
||||
virtual int read(unsigned offset, void *data, unsigned count);
|
||||
virtual int ioctl(unsigned operation, unsigned &arg);
|
||||
|
||||
#ifdef __PX4_NUTTX
|
||||
protected:
|
||||
|
@ -139,7 +139,7 @@ MS5611_I2C::init()
|
|||
}
|
||||
|
||||
int
|
||||
MS5611_I2C::dev_read(unsigned offset, void *data, unsigned count)
|
||||
MS5611_I2C::read(unsigned offset, void *data, unsigned count)
|
||||
{
|
||||
union _cvt {
|
||||
uint8_t b[4];
|
||||
|
@ -162,7 +162,7 @@ MS5611_I2C::dev_read(unsigned offset, void *data, unsigned count)
|
|||
}
|
||||
|
||||
int
|
||||
MS5611_I2C::dev_ioctl(unsigned operation, unsigned &arg)
|
||||
MS5611_I2C::ioctl(unsigned operation, unsigned &arg)
|
||||
{
|
||||
int ret;
|
||||
|
||||
|
|
Loading…
Reference in New Issue