Skip to content

fix compilation warning #2

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

Merged
merged 1 commit into from
Jul 26, 2024
Merged

fix compilation warning #2

merged 1 commit into from
Jul 26, 2024

Conversation

rvbc1
Copy link
Contributor

@rvbc1 rvbc1 commented Jul 17, 2024

Small change for fix compilation warning on esp32 with arduino 3.0.X with -std=gnu++20 flag

.pio/libdeps/SparkFun WM8960 Arduino Library/src/SparkFun_WM8960_Arduino_Library.cpp: In member function 'boolean WM8960::enableAlc(uint8_t)':
.pio/libdeps/SparkFun WM8960 Arduino Library/src/SparkFun_WM8960_Arduino_Library.cpp:552:28: warning: 'B00000001' is deprecated: use 0b00000001 instead [-Wdeprecated-declarations]
  552 |     boolean bit7 = (mode & B00000001);
      |                            ^~~~~~~~~

@lewispg228
Copy link
Contributor

@rvbc1 Thanks for this PR. Just verified on my setup and the warning is gone. Thanks!

PS just for clarity, in case anyone comes across this later, these are the SW versions that have been verified:

Arduino IDE: 2.3.2
Esp32 Boards Package: 3.0.3

@lewispg228 lewispg228 merged commit e034d85 into sparkfun:main Jul 26, 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

Successfully merging this pull request may close these issues.

2 participants