summaryrefslogtreecommitdiffstatshomepage
path: root/docs/esp8266
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2021-11-24 13:30:04 +1100
committerDamien George <damien@micropython.org>2021-11-25 21:18:17 +1100
commit196d26848a76043777e4e3ebb2455f26e6349dfc (patch)
tree2d0e6cfda7cdf24fb8f457f77dc96c24a56fbe5c /docs/esp8266
parentd49df423e09acb24a39927e485fd43cced129ee0 (diff)
downloadmicropython-196d26848a76043777e4e3ebb2455f26e6349dfc.tar.gz
micropython-196d26848a76043777e4e3ebb2455f26e6349dfc.zip
stm32/usb: Use a table of allowed values to simplify usb_mode get/set.
This reduces code size and code duplication, and fixes `pyb.usb_mode()` so that it now returns the correct string when in multi-VCP mode (before, it would return None when in one of these modes). Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'docs/esp8266')
0 files changed, 0 insertions, 0 deletions