Skip to content

Commit 45e0cee

Browse files
JakubVanekdlech
authored andcommitted
sensors: use U16 data format for the COL-CAL mode
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 <linuxtardis@gmail.com>
1 parent 78bfb7a commit 45e0cee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sensors/ev3_uart_sensor_defs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ const struct ev3_uart_sensor_info ev3_uart_sensor_defs[] = {
191191
.name = "COL-CAL",
192192
.data_sets = 4,
193193
.num_values = 3,
194-
.data_type = LEGO_SENSOR_DATA_S32,
194+
.data_type = LEGO_SENSOR_DATA_U16,
195195
},
196196
},
197197
},

0 commit comments

Comments
 (0)