mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-01 08:11:36 +08:00
ms5611: fixed the i2c device on NuttX. This was left-over debugging noise from the POSIX bringup.
This commit is contained in:
committed by
Lorenz Meier
parent
c428b77512
commit
5e27b7bc31
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user