mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-03 04:03:59 -04:00
AP_Baro: change for new PX4 paths
This commit is contained in:
parent
26a77dc502
commit
beeb9173ea
@ -24,8 +24,8 @@ AP_Baro_PX4::AP_Baro_PX4(AP_Baro &baro) :
|
||||
_num_instances(0)
|
||||
{
|
||||
memset(instances, 0, sizeof(instances));
|
||||
instances[0].fd = open(BARO_DEVICE_PATH, O_RDONLY);
|
||||
instances[1].fd = open(BARO_DEVICE_PATH"1", O_RDONLY);
|
||||
instances[0].fd = open(BARO_BASE_DEVICE_PATH"0", O_RDONLY);
|
||||
instances[1].fd = open(BARO_BASE_DEVICE_PATH"1", O_RDONLY);
|
||||
|
||||
for (uint8_t i=0; i<2; i++) {
|
||||
if (instances[i].fd != -1) {
|
||||
|
Loading…
Reference in New Issue
Block a user