File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
libraries/AP_HAL/hwdef/scripts Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -392,13 +392,13 @@ def write_BARO_config(self, f):
392
392
393
393
# look for a shortcut:
394
394
m = re .match (r"hal.spi->get_device_ptr\((.+?)\)" , get_device_call )
395
- if m is not None :
395
+ if driver not in [ "DPS280" ] and m is not None :
396
396
spi_device_string = m .group (1 )
397
397
f .write (f'#define HAL_BARO_PROBE{ n } probe_spi_dev({ probe_fn } , { spi_device_string } );\n ' )
398
398
continue
399
399
400
400
m = re .match (r"GET_I2C_DEVICE_PTR\((\d+),\s*(0x\d+)\)" , get_device_call )
401
- if m is not None :
401
+ if driver not in [ "DPS280" ] and m is not None :
402
402
i2c_bus = m .group (1 )
403
403
i2c_addr = m .group (2 )
404
404
f .write (f'#define HAL_BARO_PROBE{ n } probe_i2c_dev({ probe_fn } , { i2c_bus } , { i2c_addr } );\n ' )
You can’t perform that action at this time.
0 commit comments