summaryrefslogtreecommitdiff
path: root/robot/modes.c
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-06-07 22:23:14 +0200
committerlonkaars <loek@pipeframe.xyz>2022-06-07 22:23:14 +0200
commit377a6b80fb766995566bd77047eef08e0a4b5aae (patch)
treece70846c12d7426f9550f6dc2a88e49397f4bd52 /robot/modes.c
parent3e65c70da770fa31fc8acc6ab9374d908cf1ed17 (diff)
implement mode switching tab
Diffstat (limited to 'robot/modes.c')
-rw-r--r--robot/modes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/robot/modes.c b/robot/modes.c
index 600c9a1..4995d6f 100644
--- a/robot/modes.c
+++ b/robot/modes.c
@@ -46,7 +46,7 @@ void w2_modes_switch(w2_e_mode new_mode, bool replace) {
// forward mode change to sercomm
W2_CREATE_MSG_BIN(w2_s_cmd_mode_tx, msg, msg_bin);
msg->opcode = W2_CMD_MODE | W2_CMDDIR_TX;
- msg->mode = new_mode;
+ msg->mode = g_w2_mode_history[g_w2_mode_history_index];
w2_sercomm_append_msg(msg_bin);
free(msg_bin);