diff options
author | Fabien Poussin <fabien.poussin@gmail.com> | 2017-09-06 13:30:40 +0000 |
---|---|---|
committer | Fabien Poussin <fabien.poussin@gmail.com> | 2017-09-06 13:30:40 +0000 |
commit | 5a9ac0f9406bf4a6f11fe03e62b7b0f4cb94a3d6 (patch) | |
tree | 425a0593bd50a5633ef173a88088b5eec2dec679 /tools | |
parent | c0205baf7d49b76e512dbae2537c062ac8efefc1 (diff) | |
download | ChibiOS-Contrib-5a9ac0f9406bf4a6f11fe03e62b7b0f4cb94a3d6.tar.gz ChibiOS-Contrib-5a9ac0f9406bf4a6f11fe03e62b7b0f4cb94a3d6.tar.bz2 ChibiOS-Contrib-5a9ac0f9406bf4a6f11fe03e62b7b0f4cb94a3d6.zip |
Fix for mx2board (regex)
Diffstat (limited to 'tools')
-rw-r--r-- | tools/mx2board.py | 2 |
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:]) |