Skip to content

Commit

Permalink
sensors: use U16 data format for the COL-CAL mode
Browse files Browse the repository at this point in the history
Experimentation suggests that the values are only 16bit integers.
The maximum of 65535 futher hints towards that this is a uint16_t.

Signed-off-by: Jakub Vanek <[email protected]>
  • Loading branch information
JakubVanek authored and dlech committed Mar 7, 2020
1 parent 78bfb7a commit 45e0cee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sensors/ev3_uart_sensor_defs.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ const struct ev3_uart_sensor_info ev3_uart_sensor_defs[] = {
.name = "COL-CAL",
.data_sets = 4,
.num_values = 3,
.data_type = LEGO_SENSOR_DATA_S32,
.data_type = LEGO_SENSOR_DATA_U16,
},
},
},
Expand Down

0 comments on commit 45e0cee

Please sign in to comment.