From 8d8fdcb4bec5024503b636bcdbad244bef4e6576 Mon Sep 17 00:00:00 2001 From: Tony Abboud Date: Sun, 30 Aug 2015 17:20:38 -0400 Subject: stmhal: add option to query for the current usb mode Fetch the current usb mode and return a string representation when pyb.usb_mode() is called with no args. The possible string values are interned as qstr's. None will be returned if an incorrect mode is set. --- py/makeqstrdata.py | 1 + 1 file changed, 1 insertion(+) (limited to 'py') diff --git a/py/makeqstrdata.py b/py/makeqstrdata.py index 8100842b4..d30cf3ec4 100644 --- a/py/makeqstrdata.py +++ b/py/makeqstrdata.py @@ -35,6 +35,7 @@ codepoint2name[ord('}')] = 'brace_close' codepoint2name[ord('*')] = 'star' codepoint2name[ord('!')] = 'bang' codepoint2name[ord('\\')] = 'backslash' +codepoint2name[ord('+')] = 'plus' # this must match the equivalent function in qstr.c def compute_hash(qstr, bytes_hash): -- cgit v1.2.3