Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
BCsabaEngine opened this issue Jun 7, 2024 · 0 comments
Open

Comments

@BCsabaEngine
Copy link

.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 |
      |                     ~~~~~~~~~~~~~~~~~~~~~~~~~        
@BCsabaEngine BCsabaEngine changed the title ESP32 arduino 3.x compile warning ESP32 arduino 3.x compile warning (deprecated-enum-enum-conversion) Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant