aboutsummaryrefslogtreecommitdiff
path: root/stm32f091/server.c
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-10-30 09:37:04 +0100
committerlonkaars <loek@pipeframe.xyz>2022-10-30 09:37:04 +0100
commit60f954dbaa399f8f0bcaeeb307953fc3b37b9dc7 (patch)
treeb0f017e027d09fdce8a44ce17316057ee1f060fb /stm32f091/server.c
parent19e1b4ae6f64ad2ef1985be1b1005ebec6618bc0 (diff)
update todo and move to repo root
Diffstat (limited to 'stm32f091/server.c')
-rw-r--r--stm32f091/server.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/stm32f091/server.c b/stm32f091/server.c
index 112d23a..d69ef1e 100644
--- a/stm32f091/server.c
+++ b/stm32f091/server.c
@@ -55,9 +55,6 @@ static bool ws_server_is_response(char data, uint8_t* counter, const char* cmd,
return false;
}
-// TODO: next_few_bytes_are assumes that the complete search string is in the
-// buffer, so won't work for buffer cutoffs
-#define next_few_bytes_are(code) (((i + sizeof(code) - 2) < size) && (strncmp((char*)&data[i], code, sizeof(code) - 1) == 0))
void ws_server_req_incoming(uint8_t* data, size_t size) {
#ifdef WS_DBG_PRINT_ESP_OVER_USART2
ws_dbg_set_usart2_tty_color(WS_DBG_TTY_COLOR_RX);