diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-06-29 10:35:58 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-06-29 10:35:58 +0200 |
commit | 054cf1c2a433c87b7caee503c28db2b7005d1060 (patch) | |
tree | 7b60a739019a87228d4fb7fb320af88bed127f7f /robot/sercomm.c | |
parent | ef8b97942d8d5cec956b75b6254e18034914e80d (diff) |
fix order receiving
Diffstat (limited to 'robot/sercomm.c')
-rw-r--r-- | robot/sercomm.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/robot/sercomm.c b/robot/sercomm.c index 16134d1..8df6157 100644 --- a/robot/sercomm.c +++ b/robot/sercomm.c @@ -118,17 +118,11 @@ void w2_cmd_dirc_rx(w2_s_bin *data) { void w2_cmd_cord_rx(w2_s_bin *data) { return; } -#include <stdio.h> void w2_cmd_bomd_rx(w2_s_bin *data) { W2_CAST_BIN(w2_s_cmd_bomd_rx, data, req); req->position = w2_bin_hton32(req->position); - char buf[32]; - clear(); - // sprintf(buf, "%lu, %lu", req->position % W2_MAP_DEFAULT_WIDTH, req->position / W2_MAP_DEFAULT_WIDTH); - sprintf(buf, "%lu", req->position); - print(buf); g_w2_order[g_w2_order_index].x = req->position % W2_MAP_DEFAULT_WIDTH; g_w2_order[g_w2_order_index].y = req->position / W2_MAP_DEFAULT_WIDTH; g_w2_order_index++; |