mirror of
https://github.com/oliverschmidt/contiki.git
synced 2025-01-18 03:30:31 +00:00
Merge pull request #2338 from tim-ist/bmp_fix
cc26xx/sensortag: Use correct calibration data structure size
This commit is contained in:
commit
1364e98d9e
@ -88,7 +88,6 @@
|
|||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
/* Misc. */
|
/* Misc. */
|
||||||
#define MEAS_DATA_SIZE 6
|
#define MEAS_DATA_SIZE 6
|
||||||
#define CALIB_DATA_SIZE 24
|
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
#define RES_OFF 0
|
#define RES_OFF 0
|
||||||
#define RES_ULTRA_LOW_POWER 1
|
#define RES_ULTRA_LOW_POWER 1
|
||||||
@ -121,6 +120,7 @@ typedef struct bmp_280_calibration {
|
|||||||
int32_t t_fine;
|
int32_t t_fine;
|
||||||
} bmp_280_calibration_t;
|
} bmp_280_calibration_t;
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
|
#define CALIB_DATA_SIZE (sizeof(bmp_280_calibration_t))
|
||||||
static uint8_t calibration_data[CALIB_DATA_SIZE];
|
static uint8_t calibration_data[CALIB_DATA_SIZE];
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
#define SENSOR_STATUS_DISABLED 0
|
#define SENSOR_STATUS_DISABLED 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user