mirror of https://github.com/ArduPilot/ardupilot
HAL_ChibiOS: make it fatal to have I2C devices without an I2C_ORDER
otherwise it is very confusing when you end up with AP_HAL_Dummy for I2C manager
This commit is contained in:
parent
1a4f51d782
commit
d768c721ee
|
@ -1865,8 +1865,7 @@ def write_I2C_config(f):
|
|||
''')
|
||||
return
|
||||
if 'I2C_ORDER' not in config:
|
||||
print("Missing I2C_ORDER config")
|
||||
return
|
||||
error("Missing I2C_ORDER config")
|
||||
i2c_list = config['I2C_ORDER']
|
||||
f.write('// I2C configuration\n')
|
||||
if len(i2c_list) == 0:
|
||||
|
|
Loading…
Reference in New Issue