mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 23:33:57 -04:00
AP_Baro: Add I2C Access
This commit is contained in:
parent
117630a469
commit
233fb94417
@ -135,7 +135,11 @@ bool AP_Baro_DPS280::init()
|
||||
return false;
|
||||
}
|
||||
|
||||
dev->set_read_flag(0x80);
|
||||
// setup to allow reads on SPI
|
||||
if (dev->bus_type() == AP_HAL::Device::BUS_TYPE_SPI) {
|
||||
dev->set_read_flag(0x80);
|
||||
}
|
||||
|
||||
dev->set_speed(AP_HAL::Device::SPEED_HIGH);
|
||||
|
||||
uint8_t whoami=0;
|
||||
|
Loading…
Reference in New Issue
Block a user