Skip to content

Commit

Permalink
Update STM32_gen_PeripheralPins.py (ARMmbed#217)
Browse files Browse the repository at this point in the history
Protection against using python version older than python3+
  • Loading branch information
JohnK1987 authored Jan 19, 2024
1 parent 7edab2d commit ca8b6cb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions targets/TARGET_STM/tools/STM32_gen_PeripheralPins.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
from argparse import RawTextHelpFormatter
import subprocess

if sys.version_info[0] < 3: raise Exception("Python 3+ is required (recommended latest one)")

GENPINMAP_VERSION = "1.20.5"

ADD_DEVICE_IF = 0
Expand Down

0 comments on commit ca8b6cb

Please sign in to comment.