Skip to content

Commit e8f3c66

Browse files
author
Katerina Bozhilova
committed
Possibility to set ESP32 ADC attenuation during runtime
1 parent be5f8c8 commit e8f3c66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/esp32/esp32_adc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ bool esp32_set_channel_attenuation(int pin, int atten) {
6969
if (ci == NULL) return false;
7070

7171
ci->atten = (adc_atten_t) atten;
72-
return true;
72+
return esp32_update_channel_settings(ci);
7373
}
7474

7575
bool mgos_adc_enable(int pin) {

0 commit comments

Comments
 (0)