summaryrefslogtreecommitdiff
path: root/robot/sercomm.c
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-06-06 15:31:36 +0200
committerlonkaars <loek@pipeframe.xyz>2022-06-06 15:31:36 +0200
commitd69b8110517114d884c185c4dc8053858670c81f (patch)
tree8912cc5cb1b7ead5ce7469cd60356af189e926ce /robot/sercomm.c
parent9cbd1ed3bd8e59e24bd4db92b749213ac2c0c8f9 (diff)
scal and spin done, removed lcal
Diffstat (limited to 'robot/sercomm.c')
-rw-r--r--robot/sercomm.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/robot/sercomm.c b/robot/sercomm.c
index c50dd15..f52eb7e 100644
--- a/robot/sercomm.c
+++ b/robot/sercomm.c
@@ -99,7 +99,11 @@ void w2_cmd_ping_rx(w2_s_bin *data) { w2_sercomm_append_msg(data); }
void w2_cmd_mode_rx(w2_s_bin *data) {
W2_CAST_BIN(w2_s_cmd_mode_rx, data, req);
- w2_modes_swap(req->mode);
+ if (req->mode == W2_M_SCAL) {
+ w2_modes_call(req->mode);
+ } else {
+ w2_modes_swap(req->mode);
+ }
}
void w2_cmd_sped_rx(w2_s_bin *data) { return; }