File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 18
18
#if AP_BARO_ICM20789_ENABLED
19
19
20
20
#include < AP_HAL/AP_HAL.h>
21
- #include < AP_HAL/I2CDevice .h>
21
+ #include < AP_HAL/Device .h>
22
22
#include < utility>
23
23
24
24
#include < AP_Common/AP_Common.h>
@@ -65,15 +65,15 @@ extern const AP_HAL::HAL &hal;
65
65
/*
66
66
constructor
67
67
*/
68
- AP_Baro_ICM20789::AP_Baro_ICM20789 (AP_Baro &baro, AP_HAL::I2CDevice &_dev, AP_HAL::Device &_dev_imu)
68
+ AP_Baro_ICM20789::AP_Baro_ICM20789 (AP_Baro &baro, AP_HAL::Device &_dev, AP_HAL::Device &_dev_imu)
69
69
: AP_Baro_Backend(baro)
70
70
, dev(&_dev)
71
71
, dev_imu(&_dev_imu)
72
72
{
73
73
}
74
74
75
75
AP_Baro_Backend *AP_Baro_ICM20789::probe (AP_Baro &baro,
76
- AP_HAL::I2CDevice &dev,
76
+ AP_HAL::Device &dev,
77
77
AP_HAL::Device &dev_imu)
78
78
{
79
79
debug (" Probing for ICM20789 baro\n " );
Original file line number Diff line number Diff line change @@ -19,10 +19,10 @@ class AP_Baro_ICM20789 : public AP_Baro_Backend
19
19
public:
20
20
void update () override ;
21
21
22
- static AP_Baro_Backend *probe (AP_Baro &baro, AP_HAL::I2CDevice &dev, AP_HAL::Device &dev_imu);
22
+ static AP_Baro_Backend *probe (AP_Baro &baro, AP_HAL::Device &dev, AP_HAL::Device &dev_imu);
23
23
24
24
private:
25
- AP_Baro_ICM20789 (AP_Baro &baro, AP_HAL::I2CDevice &dev, AP_HAL::Device &dev_imu);
25
+ AP_Baro_ICM20789 (AP_Baro &baro, AP_HAL::Device &dev, AP_HAL::Device &dev_imu);
26
26
27
27
bool init ();
28
28
bool send_cmd16 (uint16_t cmd);
@@ -45,7 +45,7 @@ class AP_Baro_ICM20789 : public AP_Baro_Backend
45
45
46
46
uint8_t instance;
47
47
48
- AP_HAL::I2CDevice *dev;
48
+ AP_HAL::Device *dev;
49
49
AP_HAL::Device *dev_imu;
50
50
51
51
// time last read command was sent
You can’t perform that action at this time.
0 commit comments