aboutsummaryrefslogtreecommitdiff
path: root/robot/sercomm.c
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-05-30 13:31:47 +0200
committerlonkaars <loek@pipeframe.xyz>2022-05-30 13:31:47 +0200
commitb728a15887fa28cdd98d74017c4882d632d6e069 (patch)
tree97df03d5b78ab4b48e72f69f75f3cc4307f6a373 /robot/sercomm.c
parent03862852b128748358dcb39ce50600eef0ba1a71 (diff)
status bar almost done
Diffstat (limited to 'robot/sercomm.c')
-rw-r--r--robot/sercomm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/robot/sercomm.c b/robot/sercomm.c
index 2317d89..deef39f 100644
--- a/robot/sercomm.c
+++ b/robot/sercomm.c
@@ -135,6 +135,7 @@ void w2_cmd_info_rx(w2_s_bin *data) {
res_msg->sercomm_ms = (uint8_t)g_w2_hypervisor_ema_sercomm_ms;
res_msg->mode_ms = (uint8_t)g_w2_hypervisor_ema_mode_ms;
res_msg->uptime_s = w2_bin_hton32((uint32_t)(g_w2_hypervisor_uptime_ms / 1e3));
+ res_msg->mode = g_w2_mode_history[g_w2_mode_history_index];
w2_sercomm_append_msg(res_bin);
free(res_bin);