summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/boards/make-pins.py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-08-03 00:18:40 +0100
committerDamien George <damien.p.george@gmail.com>2015-08-03 00:18:40 +0100
commitc0e39864c6f2876375dc57009fd3341e51e62295 (patch)
tree05d09acf8398ca3df832e4715a21bd0af0de116f /stmhal/boards/make-pins.py
parent6e552e15fa6f3fbad255cae4b06d36f93564768c (diff)
downloadmicropython-c0e39864c6f2876375dc57009fd3341e51e62295.tar.gz
micropython-c0e39864c6f2876375dc57009fd3341e51e62295.zip
stmhal: Fix make-pins.py to allow Port K.
Thanks to Dave Hylands for the patch.
Diffstat (limited to 'stmhal/boards/make-pins.py')
-rwxr-xr-xstmhal/boards/make-pins.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/stmhal/boards/make-pins.py b/stmhal/boards/make-pins.py
index e7f16108bf..d9928642fa 100755
--- a/stmhal/boards/make-pins.py
+++ b/stmhal/boards/make-pins.py
@@ -32,8 +32,8 @@ def parse_port_pin(name_str):
raise ValueError("Expecting pin name to be at least 3 charcters.")
if name_str[0] != 'P':
raise ValueError("Expecting pin name to start with P")
- if name_str[1] < 'A' or name_str[1] > 'J':
- raise ValueError("Expecting pin port to be between A and J")
+ if name_str[1] < 'A' or name_str[1] > 'K':
+ raise ValueError("Expecting pin port to be between A and K")
port = ord(name_str[1]) - ord('A')
pin_str = name_str[2:]
if not pin_str.isdigit():