From 1c7c0bd747c839fb1e449e98cec942894821addf Mon Sep 17 00:00:00 2001 From: lonkaars Date: Sun, 29 May 2022 17:01:19 +0200 Subject: `make format` --- shared/errcatch.c | 3 +-- shared/errcatch.h | 3 +-- shared/serial_parse.c | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) (limited to 'shared') 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 -#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 #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); } - -- cgit v1.2.3