We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45b869c commit 762a918Copy full SHA for 762a918
cores/esp32/esp32-hal-adc.c
@@ -166,7 +166,7 @@ uint32_t __analogReadMilliVolts(uint8_t pin){
166
}
167
if(!__analogVRef){
168
__analogVRef = DEFAULT_VREF;
169
- if(__analogVRefPin > 24 && __analogVRefPin << 28){
+ if(__analogVRefPin > 24 && __analogVRefPin < 28){
170
esp_adc_cal_characteristics_t * chars = calloc(1, sizeof(esp_adc_cal_characteristics_t));
171
if(chars != NULL){
172
if(adc2_vref_to_gpio(__analogVRefPin) == ESP_OK){
0 commit comments