From f2347e78458a6c5e8ff1862eca62185652442a2d Mon Sep 17 00:00:00 2001 From: Walter Dunckel Date: Fri, 4 Feb 2022 04:38:28 -0800 Subject: [PATCH] AP_HAL_ChibiOS: add missing EOL in output without it a double define line was giving compiler an error --- libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py b/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py index c1061a470a..fb63d27fbd 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py +++ b/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py @@ -918,7 +918,7 @@ def write_mcu_config(f): if env_vars['EXTERNAL_PROG_FLASH_MB'] and not args.bootloader: f.write('#define CRT1_RAMFUNC_ENABLE TRUE\n') # this will enable loading program sections to RAM f.write('#define __RAMFUNC__ __attribute__ ((long_call, __section__(".ramfunc")))\n') - f.write('#define PORT_IRQ_ATTRIBUTES __RAMFUNC__') + f.write('#define PORT_IRQ_ATTRIBUTES __RAMFUNC__\n') else: f.write('#define CRT1_RAMFUNC_ENABLE FALSE\n')