We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2dd6d1b commit 280a20dCopy full SHA for 280a20d
source/daplink/cmsis-dap/DAP.c
@@ -110,10 +110,11 @@ static uint8_t DAP_Info(uint8_t id, uint8_t *info) {
110
((TIMESTAMP_CLOCK != 0U) ? (1U << 5) : 0U) |
111
((SWO_STREAM != 0U) ? (1U << 6) : 0U) |
112
((DAP_UART != 0U) ? (1U << 7) : 0U);
113
- length = 1U;
114
-#if (DAP_UART != 0)
+#if ((DAP_UART != 0) && (DAP_UART_USB_COM_PORT != 0))
115
info[1] = ((DAP_UART_USB_COM_PORT != 0) ? (1U << 0) : 0U);
116
length = 2U;
+#else
117
+ length = 1U;
118
#endif
119
break;
120
case DAP_ID_TIMESTAMP_CLOCK:
0 commit comments