Skip to content

Commit f9170e9

Browse files
committed
Added uptime to setupvalues
1 parent f0b291d commit f9170e9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

commands.c

+3
Original file line numberDiff line numberDiff line change
@@ -892,6 +892,9 @@ void commands_process_packet(unsigned char *data, unsigned int len,
892892
if (mask & ((uint32_t)1 << 20)) {
893893
buffer_append_uint32(send_buffer, mc_interface_get_odometer(), &ind);
894894
}
895+
if (mask & ((uint32_t)1 << 21)) {
896+
buffer_append_uint32(send_buffer, chVTGetSystemTimeX() / (CH_CFG_ST_FREQUENCY / 1000), &ind);
897+
}
895898

896899
reply_func(send_buffer, ind);
897900
chMtxUnlock(&send_buffer_mutex);

0 commit comments

Comments
 (0)