aboutsummaryrefslogtreecommitdiff
path: root/robot/sercomm.c
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-05-26 15:20:55 +0200
committerlonkaars <loek@pipeframe.xyz>2022-05-26 15:20:55 +0200
commit1913a240aab3a2ad72d477aa6fff840afdcad7a3 (patch)
treefb5e1493726ce6dddc3c812aa9730e4a856dabd3 /robot/sercomm.c
parent9c1f3dcc98b639e3bbcb6a8e199d8f1aa4bcc42a (diff)
implement mode history
Diffstat (limited to 'robot/sercomm.c')
-rw-r--r--robot/sercomm.c2
1 files changed, 1 insertions, 1 deletions
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; }