diff options
Diffstat (limited to 'shared')
-rw-r--r-- | shared/errcatch.c | 3 | ||||
-rw-r--r-- | shared/errcatch.h | 3 | ||||
-rw-r--r-- | shared/serial_parse.c | 3 |
3 files changed, 3 insertions, 6 deletions
diff --git a/shared/errcatch.c b/shared/errcatch.c index ff7fc93..76af10a 100644 --- a/shared/errcatch.c +++ b/shared/errcatch.c @@ -6,7 +6,7 @@ w2_s_error *g_w2_error_buffer[W2_ERROR_BUFFER_SIZE] = {}; uint8_t g_w2_error_index = 0; uint8_t g_w2_error_offset = 0; -bool g_w2_error_buffer_full = 0; +bool g_w2_error_buffer_full = 0; bool g_w2_error_uncaught = 0; void w2_errcatch_main() { @@ -43,4 +43,3 @@ void w2_errcatch_throw_msg(w2_e_errorcode code, uint16_t length, const char *mes if (g_w2_error_buffer_full) return; g_w2_error_index = next_index; } - diff --git a/shared/errcatch.h b/shared/errcatch.h index 9b14cc2..7f298c1 100644 --- a/shared/errcatch.h +++ b/shared/errcatch.h @@ -4,8 +4,8 @@ #include <stdint.h> -#include "consts.h" #include "bool.h" +#include "consts.h" #define W2_E_TYPE_MASK (0b11 << 6) @@ -95,4 +95,3 @@ void w2_errcatch_throw_msg(w2_e_errorcode code, uint16_t length, const char *mes * TODO: doesn't handle null pointers from malloc */ w2_s_error *w2_alloc_error(w2_e_errorcode code, uint16_t length, const char *message); - diff --git a/shared/serial_parse.c b/shared/serial_parse.c index 49f4cbf..54b9ab5 100644 --- a/shared/serial_parse.c +++ b/shared/serial_parse.c @@ -1,8 +1,8 @@ #include <string.h> #include "consts.h" -#include "serial_parse.h" #include "errcatch.h" +#include "serial_parse.h" #ifdef W2_SIM #include "../robot/orangutan_shim.h" #endif @@ -58,4 +58,3 @@ void w2_cmd_handler(uint8_t data[W2_SERIAL_READ_BUFFER_SIZE], uint8_t data_lengt free(copy); } - |