From 77b8f86a5eae397c42c4c68fd9f86bbfa0311c82 Mon Sep 17 00:00:00 2001 From: Damien George Date: Wed, 27 Nov 2019 21:48:00 +1100 Subject: [PATCH] stm32/qstrdefsport.h: Remove unused qstrs and make USB ones conditional. qstrs in this file are always included in all builds, even if not used anywhere. So remove those that are never needed, and make USB names conditional on having USB enabled. --- ports/stm32/qstrdefsport.h | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/ports/stm32/qstrdefsport.h b/ports/stm32/qstrdefsport.h index 31220c5a4..857dc709c 100644 --- a/ports/stm32/qstrdefsport.h +++ b/ports/stm32/qstrdefsport.h @@ -26,22 +26,18 @@ // qstrs specific to this port -Q(boot.py) -Q(main.py) // Entries for sys.path Q(/flash) Q(/flash/lib) Q(/sd) Q(/sd/lib) + +// For uos.sep +Q(/) + +#if MICROPY_HW_ENABLE_USB // for usb modes Q(MSC+HID) Q(VCP+MSC) Q(VCP+HID) -Q(CDC+MSC) -Q(CDC+HID) -Q(/) - - -// The following qstrings not referenced from anywhere in the sources -Q(CDC) -Q(flash) +#endif