aboutsummaryrefslogtreecommitdiffstats
path: root/tools/mx2board.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/mx2board.py')
-rw-r--r--tools/mx2board.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/mx2board.py b/tools/mx2board.py
index 85e643b..ea0b010 100644
--- a/tools/mx2board.py
+++ b/tools/mx2board.py
@@ -268,7 +268,7 @@ def gen_defines(project):
defines['PORT_'+label] = 'GPIO' + port_key
defines['PAD_'+label] = pad_key
- if re.search(r"TIM\d_CH\d", signal, re.M):
+ if re.search(r"TIM\d+_CH\d$", signal, re.M):
timer = signal.replace('S_TIM', '').replace('_CH', '')[:-1]
ch_num = int(signal[-1:])