diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-05-30 12:31:23 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-05-30 12:31:23 +0200 |
commit | 03862852b128748358dcb39ce50600eef0ba1a71 (patch) | |
tree | d5052d02d7bb31a866d5829eb05cfaf9b35bfa59 /client/serial.c | |
parent | 555e5d2c0ce77dd1e031690c98ec9a1366182347 (diff) |
use ncurses instead of poopy ui library
Diffstat (limited to 'client/serial.c')
-rw-r--r-- | client/serial.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/client/serial.c b/client/serial.c index 78f5631..e42bc0b 100644 --- a/client/serial.c +++ b/client/serial.c @@ -18,15 +18,16 @@ void w2_cmd_ping_tx(w2_s_bin *data) { if (g_w2_state.ping_id != cast->id) return; g_w2_state.ping = w2_timer_end(W2_TIMER_PING); g_w2_state.ping_received = true; - - printf("ping measured, %ims\n", g_w2_state.ping); } -void w2_cmd_expt_tx(w2_s_bin *data) { printf("w2_cmd_expt_tx()\n"); } -void w2_cmd_mode_tx(w2_s_bin *data) { printf("w2_cmd_mode_tx()\n"); } -void w2_cmd_cord_tx(w2_s_bin *data) { printf("w2_cmd_cord_tx()\n"); } -void w2_cmd_bomd_tx(w2_s_bin *data) { printf("w2_cmd_bomd_tx()\n"); } -void w2_cmd_sens_tx(w2_s_bin *data) { printf("w2_cmd_sens_tx()\n"); } +void w2_cmd_expt_tx(w2_s_bin *data) {} +void w2_cmd_mode_tx(w2_s_bin *data) { + W2_CAST_BIN(w2_s_cmd_mode_tx, data, cast); + g_w2_state.mode = cast->mode; +} +void w2_cmd_cord_tx(w2_s_bin *data) {} +void w2_cmd_bomd_tx(w2_s_bin *data) {} +void w2_cmd_sens_tx(w2_s_bin *data) {} void w2_cmd_info_tx(w2_s_bin *data) { memcpy(&g_w2_state.info, data->data, sizeof(w2_s_cmd_info_tx)); |