diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-05-18 11:18:04 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-05-18 11:18:04 +0200 |
commit | 3f4b1c7284304d8c4ae2e4dd17359a2b4c1c573c (patch) | |
tree | 41410bbbdd7fc33ce63ac9873356846eb525dbe7 /robot/errcatch.h | |
parent | 837acf351ae96e2392efde175a61fd33e0774961 (diff) |
[WIP] serial communication (broken w/ segfault)
Diffstat (limited to 'robot/errcatch.h')
-rw-r--r-- | robot/errcatch.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/robot/errcatch.h b/robot/errcatch.h index c6edcfb..f0e25d9 100644 --- a/robot/errcatch.h +++ b/robot/errcatch.h @@ -39,6 +39,8 @@ enum w2_e_errorcodes { W2_E_WARN_ERR_BUFFER_FULL = 0x04 | W2_E_TYPE_WARN, /** line lost, trying to calibrate */ W2_E_WARN_LINE_LOST = 0x05 | W2_E_TYPE_WARN, + /** serial buffer full, gets thrown on next cycle */ + W2_E_WARN_SERCOMM_BUFFER_FULL = 0x06 | W2_E_TYPE_WARN, }; /** @@ -75,6 +77,6 @@ void w2_errcatch_throw_msg(enum w2_e_errorcodes code, uint16_t length, const cha /** * allocate and initialize error struct * - * TODO: doesn't handle null pointers from calloc + * TODO: doesn't handle null pointers from malloc */ w2_s_error *w2_alloc_error(enum w2_e_errorcodes code, uint16_t length, const char *message); |