mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 02:18:29 -04:00
HAL_ChibiOS: fixed I2C device list
This commit is contained in:
parent
f135e73e04
commit
9916a93919
@ -249,7 +249,8 @@ def write_USB_config(f):
|
||||
|
||||
def write_I2C_config(f):
|
||||
'''write I2C config defines'''
|
||||
i2c_list = get_config('I2C_ORDER').split()
|
||||
get_config('I2C_ORDER')
|
||||
i2c_list = config['I2C_ORDER']
|
||||
devlist = []
|
||||
for dev in i2c_list:
|
||||
if not dev.startswith('I2C') or dev[3] not in "1234":
|
||||
|
Loading…
Reference in New Issue
Block a user