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

Forgot to add this file. Fixes setparam

parent d22cc067
No related branches found
No related tags found
1 merge request!3New Commands Structure
......@@ -120,7 +120,7 @@ int cb_setparam(modular_structs_t *structs)
// Get the controller ID, parameter ID, parameter value
u8 controller_id = uart_buff_data_get_u8(0);
u8 param_id = uart_buff_data_get_u8(1);
float param_val = uart_buff_data_get_float(3);
float param_val = uart_buff_data_get_float(2);
// Check to make sure the IDs are in bounds
if (controller_id >= MAX_CONTROLLER_ID ||
param_id >= MAX_CONTROL_PARAM_ID)
......
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