This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 90cf9f871c97c5426229f98c703651af3aef2a31
Author: raiden00pl <[email protected]>
AuthorDate: Thu Nov 16 14:08:31 2023 +0100

    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 */

Reply via email to