From 17d53ff3e48cda8b084d3d975f4ffda4f10ad335 Mon Sep 17 00:00:00 2001 From: Bosch Sensortec Date: Thu, 23 Mar 2017 11:59:54 +0100 Subject: [PATCH] Corrected typedef for u32 Updated version for sensor_api_common_types.h to 2.0.1 --- README.md | 2 +- sensor_api_common_types.h | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 12d1690..7ab6376 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ VERSION * bme680_calculations.c - 2.0.0 * bme680_calculations.h - 2.0.0 * bme680_internal.h - 2.0.0 - * sensor_api_common_types.h - 2.0.0 + * sensor_api_common_types.h - 2.0.1 * BME680_SensorAPI_Example_Guide.pdf - 2.0.0 INTEGRATION DETAILS diff --git a/sensor_api_common_types.h b/sensor_api_common_types.h index e8ae5ca..17b39ea 100644 --- a/sensor_api_common_types.h +++ b/sensor_api_common_types.h @@ -7,7 +7,7 @@ * * Date : 2016/06/10 * -* Revision: 2.0.0 +* Revision: 2.0.1 * * Usage: sensor API common data types Header File * @@ -184,7 +184,7 @@ /*unsigned integer types*/ typedef unsigned char u8;/**< used for unsigned 8bit */ typedef unsigned short int u16;/**< used for unsigned 16bit */ - typedef unsigned long int u32;/**< used for unsigned 32bit */ + typedef unsigned int u32;/**< used for unsigned 32bit */ /* If your machine support 32 bit define the MACHINE_32_BIT*/ @@ -198,7 +198,7 @@ /*unsigned integer types*/ typedef unsigned char u8;/**< used for unsigned 8bit */ typedef unsigned short int u16;/**< used for unsigned 16bit */ - typedef unsigned long int u32;/**< used for unsigned 32bit */ + typedef unsigned int u32;/**< used for unsigned 32bit */ typedef unsigned long long int u64;/**< used for unsigned 64bit */ /* If your machine support 64 bit @@ -258,7 +258,7 @@ /*unsigned integer types*/ typedef unsigned char u8;/**< used for unsigned 8bit */ typedef unsigned short int u16;/**< used for unsigned 16bit */ - typedef unsigned long int u32;/**< used for unsigned 32bit */ + typedef unsigned int u32;/**< used for unsigned 32bit */ /*! @brief If your machine support 32 bit define the MACHINE_32_BIT*/ #elif defined MACHINE_32_BIT @@ -271,7 +271,7 @@ /*unsigned integer types*/ typedef unsigned char u8;/**< used for unsigned 8bit */ typedef unsigned short int u16;/**< used for unsigned 16bit */ - typedef unsigned long int u32;/**< used for unsigned 32bit + typedef unsigned int u32;/**< used for unsigned 32bit - int and long int is same for u32*/ typedef unsigned long long int u64;/**< used for unsigned 64bit */