aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-05-24 21:04:35 +0200
committerlonkaars <loek@pipeframe.xyz>2022-05-24 21:04:35 +0200
commitede8a89706209fa26e151a34a28e64affbffd23d (patch)
tree053e01217e0161d55035ea206198b2e54254f145
parent7e3ece64cd5138081263413461dc6856a668bfae (diff)
make format
-rw-r--r--robot/consts.h1
-rw-r--r--robot/sercomm.c6
2 files changed, 3 insertions, 4 deletions
diff --git a/robot/consts.h b/robot/consts.h
index a8b8397..70efcac 100644
--- a/robot/consts.h
+++ b/robot/consts.h
@@ -15,4 +15,3 @@
#define W2_SERCOMM_BUFFER_SIZE (16)
/** size of input (receive) buffer (in bytes) */
#define W2_SERIAL_READ_BUFFER_SIZE (255)
-
diff --git a/robot/sercomm.c b/robot/sercomm.c
index 2faaa27..d1bb3b3 100644
--- a/robot/sercomm.c
+++ b/robot/sercomm.c
@@ -11,8 +11,8 @@ uint8_t g_w2_sercomm_offset = 0;
uint8_t g_w2_sercomm_buffer_full = 0;
char g_w2_serial_buffer[W2_SERIAL_READ_BUFFER_SIZE] = {0};
-uint8_t g_w2_serial_buffer_index = 0;
-uint8_t g_w2_serial_buffer_head = 0;
+uint8_t g_w2_serial_buffer_index = 0;
+uint8_t g_w2_serial_buffer_head = 0;
void w2_sercomm_main() {
#ifdef W2_SIM
@@ -27,7 +27,7 @@ void w2_sercomm_main() {
g_w2_sercomm_offset = (g_w2_sercomm_offset + 1) % W2_SERCOMM_BUFFER_SIZE;
}
- while(serial_get_received_bytes() != g_w2_serial_buffer_index) {
+ while (serial_get_received_bytes() != g_w2_serial_buffer_index) {
uint8_t byte = g_w2_serial_buffer[g_w2_serial_buffer_index];
#ifdef W2_SIM
simprintf("serial byte: %02x\n", byte);