Update STM32_gen_PeripheralPins.py (#217)

Protection against using python version older than python3+
pull/15494/head
JohnK1987 2024-01-19 21:50:13 +01:00 committed by GitHub
parent 7edab2d1ce
commit ca8b6cb609
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -27,6 +27,8 @@ from xml.dom.minidom import parse, Node
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