Skip to content

Commit

Permalink
Possibility to set ESP32 ADC attenuation during runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
Katerina Bozhilova committed Oct 12, 2021
1 parent be5f8c8 commit e8f3c66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/esp32/esp32_adc.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ bool esp32_set_channel_attenuation(int pin, int atten) {
if (ci == NULL) return false;

ci->atten = (adc_atten_t) atten;
return true;
return esp32_update_channel_settings(ci);
}

bool mgos_adc_enable(int pin) {
Expand Down

0 comments on commit e8f3c66

Please sign in to comment.