Menu

Error in BME280 routines

jackjames
2019-09-24
2019-09-24
  • jackjames

    jackjames - 2019-09-24

    Hello.
    I wanted to try the routines to use the BME280 module that I would like to use in my next project.
    If they are used with hardware I2C they do not give any problems.
    But if I use them in software mode, this error occurs:

    Errors have been found:

    bme280.h (612): Error: Invalid variable name: BME280_DATABUFFER_POINTER,255
    bme280.h (614): Error: Invalid variable name: BME280GETBYTEDATA,0

    I attach the two files

     
  • jackjames

    jackjames - 2019-09-24

    Solved !
    The problem consists in the parentheses at the end of the lines.
    I mark it so you can correct it in the next release.

     
  • Anobium

    Anobium - 2019-09-24

    The following code in the library is incorrect. This could never have worked.

    I2CReceive BME280_DataBuffer( BME280_DataBuffer_Pointer, ACK )

    This calls the I2CRecieve with one parameter and that parameter is incorrect. BME280_DataBuffer( BME280_DataBuffer_Pointer, ACK ) is an invalid variable which is the error.

    Change the library to I2CReceive BME280_DataBuffer( BME280_DataBuffer_Pointer) , ACK

    Anobium

     
  • Anobium

    Anobium - 2019-09-24

    I have updated the library for the next release.

    :-)

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.