aboutsummaryrefslogtreecommitdiff
path: root/shared/serial_parse.c
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2023-01-07 22:11:12 +0100
committerlonkaars <loek@pipeframe.xyz>2023-01-07 22:11:12 +0100
commit1c747510457c40330f8bd4506e725889c3d012e2 (patch)
tree5ed807fe726deedd51e84efb8916e71d38afdc18 /shared/serial_parse.c
parent456efce00c0ed85061352a38edddc0a3f39c7804 (diff)
`clang-format`
Diffstat (limited to 'shared/serial_parse.c')
-rw-r--r--shared/serial_parse.c7
1 files changed, 3 insertions, 4 deletions
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 <string.h>
#include <memory.h>
+#include <string.h>
#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
-