aboutsummaryrefslogtreecommitdiff
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
parent19e1b4ae6f64ad2ef1985be1b1005ebec6618bc0 (diff)
update todo and move to repo root
-rw-r--r--stm32f091/server.c3
-rw-r--r--todo.md (renamed from stm32f091/todo.md)10
2 files changed, 5 insertions, 8 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);
diff --git a/stm32f091/todo.md b/todo.md
index 1d42bf8..5924b20 100644
--- a/stm32f091/todo.md
+++ b/todo.md
@@ -3,7 +3,7 @@
- [ ] more documentation in header files (for both client and stm code)
- [ ] design/architecture document
- [x] more tests in the test document
-- [ ] handle errors from `AT+CIPSEND`, these look like this:
+- [x] handle errors from `AT+CIPSEND`, these look like this:
```
> AT0,CONNECT
@@ -19,10 +19,10 @@
- [ ] `sensor.c:24: return (uint8_t) temp_c; //TODO: convert with range -> util.h`
- [ ] `sensor.c:36: return (uint8_t) humidity; //TODO: convert with range -> util.h`
- [ ] `sensor.c:51: return (uint8_t) val; // TODO: convert with range`
-- [ ] `server.c:47:// TODO: next_few_bytes_are assumes that the complete search string is in the`
+- [x] `server.c:47:// TODO: next_few_bytes_are assumes that the complete search string is in the`
- [ ] `server.c:146: // TODO: buffer overrun protection`
-- [ ] `server.c:152:// TODO: refactor this`
-- [ ] `server.c:165:// TODO: refactor this`
-- [ ] `server.c:174:// TODO: refactor this`
+- [x] `server.c:152:// TODO: refactor this`
+- [x] `server.c:165:// TODO: refactor this`
+- [x] `server.c:174:// TODO: refactor this`
- [ ] `setup.c:95: // TODO: remove debug size`
- [ ] `setup.c:187: .Pin = GPIO_PIN_8|GPIO_PIN_9, //TODO: use #defines in setup.h`