summaryrefslogtreecommitdiff
path: root/client/serial.c
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-06-02 19:14:08 +0200
committerlonkaars <loek@pipeframe.xyz>2022-06-02 19:14:08 +0200
commit595763efb64ee861f3ccf458ff35992b94f2fa3a (patch)
tree428ae0f7b474b8cb644fadcb4491ed7d8e4baffa /client/serial.c
parent14779cb187dac9ed4a0b6e7645e76e78587ad024 (diff)
[WIP] stop on connection lost in dirc
Diffstat (limited to 'client/serial.c')
-rw-r--r--client/serial.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/client/serial.c b/client/serial.c
index 743fe76..112fd81 100644
--- a/client/serial.c
+++ b/client/serial.c
@@ -2,10 +2,10 @@
#include "../shared/protocol.h"
#include "../shared/serial_parse.h"
+#include "commands.h"
#include "main.h"
#include "serial.h"
#include "time.h"
-#include "commands.h"
void w2_serial_main() {
int temp;
@@ -20,13 +20,11 @@ void w2_cmd_ping_rx(w2_s_bin *data) {
g_w2_state.ping = w2_timer_end(W2_TIMER_PING);
g_w2_state.ping_received = true;
- g_w2_state.ping_timeout = false;
- g_w2_state.connected = true;
+ g_w2_state.ping_timeout = false;
+ g_w2_state.connected = true;
}
-void w2_cmd_ping_tx(w2_s_bin *data) {
- w2_send_bin(data);
-}
+void w2_cmd_ping_tx(w2_s_bin *data) { w2_send_bin(data); }
void w2_cmd_expt_tx(w2_s_bin *data) {}
void w2_cmd_mode_tx(w2_s_bin *data) {