From 9933dfd7d0005d1036a7bb3bce976bcaf83a8954 Mon Sep 17 00:00:00 2001 From: Timofei Istomin Date: Tue, 26 Sep 2017 18:42:48 +0200 Subject: [PATCH] Use correct calibration data structure size --- platform/srf06-cc26xx/sensortag/bmp-280-sensor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/srf06-cc26xx/sensortag/bmp-280-sensor.c b/platform/srf06-cc26xx/sensortag/bmp-280-sensor.c index a6e525cb1..fac0b2819 100644 --- a/platform/srf06-cc26xx/sensortag/bmp-280-sensor.c +++ b/platform/srf06-cc26xx/sensortag/bmp-280-sensor.c @@ -88,7 +88,6 @@ /*---------------------------------------------------------------------------*/ /* Misc. */ #define MEAS_DATA_SIZE 6 -#define CALIB_DATA_SIZE 24 /*---------------------------------------------------------------------------*/ #define RES_OFF 0 #define RES_ULTRA_LOW_POWER 1 @@ -121,6 +120,7 @@ typedef struct bmp_280_calibration { int32_t t_fine; } bmp_280_calibration_t; /*---------------------------------------------------------------------------*/ +#define CALIB_DATA_SIZE (sizeof(bmp_280_calibration_t)) static uint8_t calibration_data[CALIB_DATA_SIZE]; /*---------------------------------------------------------------------------*/ #define SENSOR_STATUS_DISABLED 0