0
0
Fork 0

update(dapjs) enable by default websocket dap

This commit is contained in:
kerms 2024-07-15 20:05:46 +08:00
parent 06f594d60f
commit 6a625c0c57
1 changed files with 1 additions and 2 deletions

View File

@ -20,6 +20,7 @@
#include "lwip/err.h"
#include "lwip/sockets.h"
#include "websocket_server.h"
extern TaskHandle_t kDAPTaskHandle;
extern int kRestartDAPHandle;
@ -128,9 +129,7 @@ void tcp_server_task(void *pvParameters)
usbip_state = WAIT_IMPORT;
usbip_worker(tcp_rx_buffer, sizeof(tcp_rx_buffer), &usbip_state);
} else if (header == 0x47455420) { // string "GET "
#ifdef CONFIG_USE_WEBSOCKET_DAP
websocket_worker(kSock, tcp_rx_buffer, sizeof(tcp_rx_buffer));
#endif
} else {
printf("Unknown protocol\n");
}