fix(logging): Disable USB driver logging.

When enabling our high level USB logging, disable the USB driver
logging itself entirely, to avoid logging in the driver causing
errors when USB isn't up yet to send the logs.
This commit is contained in:
Peter Johanson 2022-07-13 23:34:32 -04:00 committed by Pete Johanson
parent 31f664ffec
commit 2f9bc2f1f7

View file

@ -419,9 +419,16 @@ if ZMK_USB_LOGGING
config ZMK_LOG_LEVEL config ZMK_LOG_LEVEL
default 4 default 4
choice USB_CDC_ACM_LOG_LEVEL_CHOICE
default USB_CDC_ACM_LOG_LEVEL_OFF
endchoice
choice USB_DRIVER_LOG_LEVEL_CHOICE
default USB_DRIVER_LOG_LEVEL_OFF
endchoice
# We do this to avoid log loop where logging to USB generates more log messages. # We do this to avoid log loop where logging to USB generates more log messages.
config USB_CDC_ACM_LOG_LEVEL
default 1
config USB_CDC_ACM_RINGBUF_SIZE config USB_CDC_ACM_RINGBUF_SIZE
default 1024 default 1024