From 1913a240aab3a2ad72d477aa6fff840afdcad7a3 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Thu, 26 May 2022 15:20:55 +0200 Subject: implement mode history --- robot/sercomm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'robot/sercomm.c') diff --git a/robot/sercomm.c b/robot/sercomm.c index e972f28..c9c6194 100644 --- a/robot/sercomm.c +++ b/robot/sercomm.c @@ -71,7 +71,7 @@ void w2_cmd_mode_rx(w2_s_bin *data) { w2_s_cmd_mode_rx *message = malloc(w2_cmd_sizeof(data->data, data->bytes)); memcpy(message, data->data, data->bytes); - w2_modes_switch(message->mode); + w2_modes_swap(message->mode); } void w2_cmd_sped_rx(w2_s_bin *data) { return; } -- cgit v1.2.3