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:
Andrew Tridgell 2022-12-20 13:35:26 +11:00
parent 1a4f51d782
commit d768c721ee
1 changed files with 1 additions and 2 deletions

View File

@ -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: