diff --git a/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py b/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py index 148cd4277a17b..ff8cb22e7301d 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py +++ b/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py @@ -3072,7 +3072,7 @@ def process_line(self, line): self.env_vars[name] = value elif a[0] == 'define': # extract numerical defines for processing by other parts of the script - result = re.match(r'define\s*([A-Z_]+)\s*([0-9]+)', line) + result = re.match(r'define\s*([A-Z_0-9]+)\s*([0-9]+)', line) if result: self.intdefines[result.group(1)] = int(result.group(2))