From d768c721ee11fef664b019603a8acba943666113 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 20 Dec 2022 13:35:26 +1100 Subject: [PATCH] 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 --- libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py b/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py index ad80b3e01d..e9010f5522 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py +++ b/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py @@ -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: