diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-05-14 00:49:58 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-05-14 00:49:58 +0200 |
commit | d9df6e65017e9f4409b33a13e4aa62f37e685946 (patch) | |
tree | f672c3b3ea4c97b83a955bf628fc0d9d60cdd144 /robot/errcatch.h | |
parent | 3f90c242ff00cc2a8ec26486c1d22bb0e3de0114 (diff) |
error handling done + better simulation / debug messaging
Diffstat (limited to 'robot/errcatch.h')
-rw-r--r-- | robot/errcatch.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/robot/errcatch.h b/robot/errcatch.h index 7ced980..5afe5b3 100644 --- a/robot/errcatch.h +++ b/robot/errcatch.h @@ -27,7 +27,7 @@ extern uint8_t g_w2_error_offset; void w2_errcatch_main(); /** handle error */ -void w2_errcatch_handle_error(w2_s_error error); +void w2_errcatch_handle_error(w2_s_error* error); /** append error to error buffer */ void w2_errcatch_throw(enum w2_e_errorcodes code); @@ -41,4 +41,3 @@ void w2_errcatch_throw_msg(enum w2_e_errorcodes code, uint16_t length, const cha * TODO: doesn't handle null pointers from calloc */ w2_s_error *w2_alloc_error(enum w2_e_errorcodes code, uint16_t length, const char *message); - |