diff options
author | Tony Abboud <tdabboud@hotmail.com> | 2015-08-30 17:20:38 -0400 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-09-03 23:30:43 +0100 |
commit | 8d8fdcb4bec5024503b636bcdbad244bef4e6576 (patch) | |
tree | 21dcf9e6e35ec71543abd30c39c2b5368ef1b11c /py/makeqstrdata.py | |
parent | 821b7f22fec342cf0b1b61d959e6c07b9543c696 (diff) | |
download | micropython-8d8fdcb4bec5024503b636bcdbad244bef4e6576.tar.gz micropython-8d8fdcb4bec5024503b636bcdbad244bef4e6576.zip |
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.
Diffstat (limited to 'py/makeqstrdata.py')
-rw-r--r-- | py/makeqstrdata.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/py/makeqstrdata.py b/py/makeqstrdata.py index 8100842b4c..d30cf3ec4e 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): |