aboutsummaryrefslogtreecommitdiff
path: root/stm32f091
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
parent19e1b4ae6f64ad2ef1985be1b1005ebec6618bc0 (diff)
update todo and move to repo root
Diffstat (limited to 'stm32f091')
-rw-r--r--stm32f091/server.c3
-rw-r--r--stm32f091/todo.md28
2 files changed, 0 insertions, 31 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/stm32f091/todo.md
deleted file mode 100644
index 1d42bf8..0000000
--- a/stm32f091/todo.md
+++ /dev/null
@@ -1,28 +0,0 @@
-# things that have to get fixed before monday
-
-- [ ] 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:
- ```
- > AT0,CONNECT
-
- > +IPD,0,15:last-records 5<0a>
- < AT+CIPSEND=0,125
- > AT+CIPSEND=0,125
-
- > ERROR
- ```
-
-## `// TODO:`'s
-
-- [ ] `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`
-- [ ] `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`
-- [ ] `setup.c:95: // TODO: remove debug size`
-- [ ] `setup.c:187: .Pin = GPIO_PIN_8|GPIO_PIN_9, //TODO: use #defines in setup.h`