fix(usb): Split HID from core USB, logging fix.

* Split core USB init from USB HID init.
* Tweak logging to avoid "log loop" causing
  spurious buffer messages on startup.
This commit is contained in:
Peter Johanson
2022-04-13 03:20:35 +00:00
committed by Pete Johanson
parent 789fd03f8b
commit 40cd8da743
7 changed files with 82 additions and 53 deletions

View File

@@ -477,6 +477,10 @@ if ZMK_USB_LOGGING
config ZMK_LOG_LEVEL
default 4
# 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
default 1024
@@ -486,6 +490,9 @@ config LOG_BUFFER_SIZE
config LOG_STRDUP_BUF_COUNT
default 16
config LOG_PROCESS_THREAD_STARTUP_DELAY_MS
default 1000
#ZMK_USB_LOGGING
endif