From 90cf9f871c97c5426229f98c703651af3aef2a31 Mon Sep 17 00:00:00 2001 From: raiden00pl Date: Thu, 16 Nov 2023 14:08:31 +0100 Subject: [PATCH] sensors/gps: define the number of items in the satellite info list --- include/nuttx/sensors/sensor.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/nuttx/sensors/sensor.h b/include/nuttx/sensors/sensor.h index 5272d1a964..3aa577a94c 100644 --- a/include/nuttx/sensors/sensor.h +++ b/include/nuttx/sensors/sensor.h @@ -435,6 +435,10 @@ #define SENSOR_BODY_COORDINATE_P7 7 +/* GPS satellite info slots */ + +#define SENSOR_GPS_SAT_INFO_MAX 4 + /**************************************************************************** * Inline Functions ****************************************************************************/ @@ -705,7 +709,7 @@ struct sensor_gps_satellite uint32_t snr; } - info[4]; + info[SENSOR_GPS_SAT_INFO_MAX]; }; struct sensor_wake_gesture /* Type: Wake gesture */