Skip to content

Commit

Permalink
Change macros to use float data
Browse files Browse the repository at this point in the history
  • Loading branch information
Isabella committed Nov 3, 2020
1 parent c47f06e commit e6dd821
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
idf_component_register(SRCS "bme280.c"
INCLUDE_DIRS ".")
3 changes: 1 addition & 2 deletions bme280.c
Original file line number Diff line number Diff line change
Expand Up @@ -401,8 +401,7 @@ static int8_t reload_device_settings(const struct bme280_settings *settings, str
* @brief This API is the entry point.
* It reads the chip-id and calibration data from the sensor.
*/
int8_t bme280_init(struct bme280_dev *dev)
{
int8_t bme280_init(struct bme280_dev *dev) {
int8_t rslt;

/* chip id read try count */
Expand Down
8 changes: 4 additions & 4 deletions bme280_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,13 @@

/********************************************************/

#ifndef BME280_64BIT_ENABLE /*< Check if 64-bit integer (using BME280_64BIT_ENABLE) is enabled */
#ifndef BME280_32BIT_ENABLE /*< Check if 32-bit integer (using BME280_32BIT_ENABLE) is enabled */
// #ifndef BME280_64BIT_ENABLE /*< Check if 64-bit integer (using BME280_64BIT_ENABLE) is enabled */
// #ifndef BME280_32BIT_ENABLE /*< Check if 32-bit integer (using BME280_32BIT_ENABLE) is enabled */
#ifndef BME280_FLOAT_ENABLE /*< If any of the integer data types not enabled then enable BME280_FLOAT_ENABLE */
#define BME280_FLOAT_ENABLE
#endif
#endif
#endif
// #endif
// #endif

#ifndef TRUE
#define TRUE UINT8_C(1)
Expand Down

0 comments on commit e6dd821

Please sign in to comment.