Skip to content

ESP32 arduino 3.x compile warning (deprecated-enum-enum-conversion) #58

@BCsabaEngine

Description

@BCsabaEngine
.pio/libdeps/default/Adafruit INA219/Adafruit_INA219.cpp: In member function 'void Adafruit_INA219::setCalibration_32V_2A()':
.pio/libdeps/default/Adafruit INA219/Adafruit_INA219.cpp:266:53: warning: bitwise operation between different enumeration types '<unnamed enum>' and '<unnamed enum>' is deprecated [-Wdeprecated-enum-enum-conversion]
  266 |   uint16_t config = INA219_CONFIG_BVOLTAGERANGE_32V |
      |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
  267 |                     INA219_CONFIG_GAIN_8_320MV | INA219_CONFIG_BADCRES_12BIT |
      |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~       
.pio/libdeps/default/Adafruit INA219/Adafruit_INA219.cpp: In member function 'void Adafruit_INA219::setCalibration_32V_1A()':
.pio/libdeps/default/Adafruit INA219/Adafruit_INA219.cpp:377:53: warning: bitwise operation between different enumeration types '<unnamed enum>' and '<unnamed enum>' is deprecated [-Wdeprecated-enum-enum-conversion]
  377 |   uint16_t config = INA219_CONFIG_BVOLTAGERANGE_32V |
      |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
  378 |                     INA219_CONFIG_GAIN_8_320MV | INA219_CONFIG_BADCRES_12BIT |
      |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~       
.pio/libdeps/default/Adafruit INA219/Adafruit_INA219.cpp: In member function 'void Adafruit_INA219::setCalibration_16V_400mA()':
.pio/libdeps/default/Adafruit INA219/Adafruit_INA219.cpp:468:53: warning: bitwise operation between different enumeration types '<unnamed enum>' and '<unnamed enum>' is deprecated [-Wdeprecated-enum-enum-conversion]
  468 |   uint16_t config = INA219_CONFIG_BVOLTAGERANGE_16V |
      |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
  469 |                     INA219_CONFIG_GAIN_1_40MV | INA219_CONFIG_BADCRES_12BIT |
      |                     ~~~~~~~~~~~~~~~~~~~~~~~~~        

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions