mirror of
https://github.com/micropython/micropython.git
synced 2026-01-22 11:57:21 +01:00
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>