Skip to content

Commit f3384ee

Browse files
committed
Logging: Be verbose and use the oled.
1 parent 2e443d6 commit f3384ee

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

device/prj.conf.overlays/c2usb.conf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
CONFIG_NEWLIB_LIBC=y
22
CONFIG_NEWLIB_LIBC_NANO=y
33

4+
# CONFIG_UDC_DRIVER_LOG_LEVEL_INF=y
5+
# CONFIG_SHELL_BACKEND_C2USB_LOG_LEVEL_DBG=y
6+
# CONFIG_WARN_EXPERIMENTAL=y
47
CONFIG_UDC_DRIVER_LOG_LEVEL_WRN=y
8+
CONFIG_C2USB_HOGP_LOG_LEVEL_INF=y
9+
CONFIG_C2USB_UDC_MAC_LOG_LEVEL_INF=y
510
CONFIG_WARN_EXPERIMENTAL=n
611

712
CONFIG_C2USB_UDC_MAC=y
@@ -12,3 +17,4 @@ CONFIG_C2USB_UDC_MAC_THREAD_STACK_SIZE=2048
1217

1318
# needed as at suspend the msgq is flooded otherwise
1419
CONFIG_C2USB_UDC_MAC_MSGQ_SIZE=32
20+

device/src/proxy_log_backend.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ static int outputFunc(uint8_t *data, size_t length, void *ctx)
100100
}
101101
if (ProxyLog_IsAttached) {
102102
printToOurBuffer(data, length);
103+
LogO("%.*s", length, data);
103104
}
104105
return length;
105106
}

0 commit comments

Comments
 (0)