Skip to content
Snippets Groups Projects
Commit e6a14b0d authored by dawehr's avatar dawehr
Browse files

made a small change in callback to use uart_buf_data_length() instead

parent cf5e79fc
No related branches found
No related tags found
No related merge requests found
...@@ -110,7 +110,7 @@ int cb_beginupdate(modular_structs_t *structs) { ...@@ -110,7 +110,7 @@ int cb_beginupdate(modular_structs_t *structs) {
int cb_setparam(modular_structs_t *structs) int cb_setparam(modular_structs_t *structs)
{ {
// Get some of the meta data // 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 // Check if the data length is correct
if (data_len != 6) if (data_len != 6)
{ {
...@@ -175,7 +175,7 @@ int cb_setparam(modular_structs_t *structs) ...@@ -175,7 +175,7 @@ int cb_setparam(modular_structs_t *structs)
int cb_getparam(modular_structs_t* structs) int cb_getparam(modular_structs_t* structs)
{ {
// Get some of the meta data // 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); u16 msg_id = uart_buff_get_u16(3);
// Check if the data length is correct // Check if the data length is correct
if (data_len != 2) if (data_len != 2)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment