From 45e0ceeb7156c2c222a2d1fd145fac099a21db35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Van=C4=9Bk?= Date: Wed, 4 Mar 2020 22:58:54 +0100 Subject: [PATCH] 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 --- sensors/ev3_uart_sensor_defs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sensors/ev3_uart_sensor_defs.c b/sensors/ev3_uart_sensor_defs.c index f13ff6b..eae3679 100644 --- a/sensors/ev3_uart_sensor_defs.c +++ b/sensors/ev3_uart_sensor_defs.c @@ -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, }, }, },