Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 
    SOLVED

    Error in the BMP280 API

    Highlighted
    New Poster

    Error in the BMP280 API

    When testing the api, I noticed the following errors:

     

    +++ bmp280_defs.h       2019-04-09 18:44:19.878657105 +0200
    @@ -302,7 +302,7 @@
     #define BMP280_ST_DIG_T2_MIN UINT16_C(22000)
     #define BMP280_ST_DIG_T2_MAX UINT16_C(30000)
     #define BMP280_ST_DIG_T3_MIN INT16_C(-3000)
    -#define BMP280_ST_DIG_T3_MAX INT16_C(-1000)
    +#define BMP280_ST_DIG_T3_MAX INT16_C(1000)
     #define BMP280_ST_DIG_P1_MIN UINT16_C(30000)
     #define BMP280_ST_DIG_P1_MAX UINT16_C(42000)
     #define BMP280_ST_DIG_P2_MIN INT16_C(-12970)

     

    @@ -356,8 +356,8 @@
    
     /*! @brief Macros holding the bound values for the pressure in hPa */
    
    -#define BMP280_ST_PLAUSIBLE_PRESS_MIN          UINT8_C(900)
    -#define BMP280_ST_PLAUSIBLE_PRESS_MAX          UINT8_C(1100)
    +#define BMP280_ST_PLAUSIBLE_PRESS_MIN          UINT16_C(900)
    +#define BMP280_ST_PLAUSIBLE_PRESS_MAX          UINT16_C(1100)
    
     /*! @brief Macros holding integer resolution for pressure in hpa and temperature in C measurement */

    Furthermore, in the example pressure.c it can be seen that it makes sense to create a single function from the two functions

    'bmp280_get_comp_temp _ ??? ()' 'bmp280_get_comp_pres _ ??? ()'

    otherwise the variable 't_fine' will not be set and the result will be wrong.
    greetings

    Tags (1)
    1 REPLY 1
    Community Moderator

    Re: Error in the BMP280 API

    Thank-you for your report and suggestions, we have forwarded this information to the appropriate team.

    Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist