We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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-s3
Wemos ESP32-s3
not connected
v3.0.1
PlatformIO
linux
40Mhz
yes
115200
In esp32-hal-adc.c file there is a potentially invalid bool operation:
void analogContinuousSetWidth(uint8_t bits) { if ((bits < SOC_ADC_DIGI_MIN_BITWIDTH) && (bits > SOC_ADC_DIGI_MAX_BITWIDTH)) { log_e("Selected width cannot be set. Range is from %d to %d", SOC_ADC_DIGI_MIN_BITWIDTH, SOC_ADC_DIGI_MAX_BITWIDTH); return; } __adcContinuousWidth = bits; }
it should be OR?
simple hello world build
/home/csaba/.platformio/packages/framework-arduinoespressif32/cores/esp32/esp32-hal-adc.c: In function 'analogContinuousSetWidth': /home/csaba/.platformio/packages/framework-arduinoespressif32/cores/esp32/esp32-hal-adc.c:685:42: warning: logical 'and' of mutually exclusive tests is always false [-Wlogical-op] 685 | if ((bits < SOC_ADC_DIGI_MIN_BITWIDTH) && (bits > SOC_ADC_DIGI_MAX_BITWIDTH)) {
No response
The text was updated successfully, but these errors were encountered:
@BCsabaEngine - Thanks for reporting. It should be OR. I'll add a PR to fix it.
Sorry, something went wrong.
SuGlider
Successfully merging a pull request may close this issue.
Board
esp32-s3
Device Description
Wemos ESP32-s3
Hardware Configuration
not connected
Version
v3.0.1
IDE Name
PlatformIO
Operating System
linux
Flash frequency
40Mhz
PSRAM enabled
yes
Upload speed
115200
Description
In esp32-hal-adc.c file there is a potentially invalid bool operation:
it should be OR?
Sketch
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: