From e6a14b0ded58bb951648ca089ba6f768031d2113 Mon Sep 17 00:00:00 2001 From: "ucart@co3050-12" <dawehr@iastate.edu> Date: Wed, 1 Feb 2017 13:06:18 -0600 Subject: [PATCH] made a small change in callback to use uart_buf_data_length() instead --- quad/sw/modular_quad_pid/src/callbacks.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quad/sw/modular_quad_pid/src/callbacks.c b/quad/sw/modular_quad_pid/src/callbacks.c index 3555fb458..e34fe1db4 100644 --- a/quad/sw/modular_quad_pid/src/callbacks.c +++ b/quad/sw/modular_quad_pid/src/callbacks.c @@ -110,7 +110,7 @@ int cb_beginupdate(modular_structs_t *structs) { int cb_setparam(modular_structs_t *structs) { // Get some of the meta data - u16 data_len = uart_buff_get_u16(6); + u16 data_len = uart_buff_data_length(); // Check if the data length is correct if (data_len != 6) { @@ -175,7 +175,7 @@ int cb_setparam(modular_structs_t *structs) int cb_getparam(modular_structs_t* structs) { // Get some of the meta data - u16 data_len = uart_buff_get_u16(6); + u16 data_len = uart_buff_data_length(); u16 msg_id = uart_buff_get_u16(3); // Check if the data length is correct if (data_len != 2) -- GitLab