From 1c747510457c40330f8bd4506e725889c3d012e2 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Sat, 7 Jan 2023 22:11:12 +0100 Subject: `clang-format` --- shared/serial_parse.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'shared/serial_parse.c') diff --git a/shared/serial_parse.c b/shared/serial_parse.c index 1397918..f580fee 100644 --- a/shared/serial_parse.c +++ b/shared/serial_parse.c @@ -1,5 +1,5 @@ -#include #include +#include #include "consts.h" #include "serial_parse.h" @@ -45,10 +45,10 @@ bool cd_serial_parse(uint8_t byte) { } void cd_cmd_handle(uint8_t data[CD_SERIAL_READ_BUFFER_SIZE], uint8_t data_length) { - cd_s_bin *copy = cd_bin_s_alloc(data_length, data); + cd_s_bin *copy = cd_bin_s_alloc(data_length, data); if (data[0] >= CD_CMD_COUNT) return; - cd_cmd_handler_t* handler = CD_CMD_HANDLERS[data[0]]; + cd_cmd_handler_t *handler = CD_CMD_HANDLERS[data[0]]; if (handler == NULL) return; (*handler)(copy); @@ -59,4 +59,3 @@ void cd_cmd_handle(uint8_t data[CD_SERIAL_READ_BUFFER_SIZE], uint8_t data_length #ifdef __cplusplus } #endif - -- cgit v1.2.3