From 709da0fae43f572a3a0556b23d8e348a9a2a57f4 Mon Sep 17 00:00:00 2001 From: jinxudong Date: Mon, 5 Sep 2022 19:09:30 +0800 Subject: [PATCH] fix: sensor: update hall data type update hall data type to int32_t Signed-off-by: jinxudong --- include/nuttx/sensors/sensor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/nuttx/sensors/sensor.h b/include/nuttx/sensors/sensor.h index ed6ede91b7..2a069598e8 100644 --- a/include/nuttx/sensors/sensor.h +++ b/include/nuttx/sensors/sensor.h @@ -388,7 +388,7 @@ struct sensor_rgb /* Type: RGB */ struct sensor_hall /* Type: HALL */ { uint64_t timestamp; /* Units is microseconds */ - bool hall; /* Boolean type */ + int32_t hall; /* Hall state */ }; struct sensor_ir /* Type: Infrared Ray */