Skip to content

Commit a7221a0

Browse files
committed
Merge branch 'contrib/github_pr_527' into 'master'
typo fix in get_adc_voltage : get_adc_volatge->get_adc_voltage (GitHub PR) Closes AEGHB-1105 See merge request ae_group/esp-iot-solution!1322
2 parents 0a268e1 + 9343b39 commit a7221a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/button/button_adc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ esp_err_t button_adc_del(button_driver_t *button_driver)
211211
return ESP_OK;
212212
}
213213

214-
static uint32_t get_adc_volatge(adc_unit_t unit_id, uint8_t channel)
214+
static uint32_t get_adc_voltage(adc_unit_t unit_id, uint8_t channel)
215215
{
216216
uint32_t adc_reading = 0;
217217
int adc_raw = 0;
@@ -241,7 +241,7 @@ uint8_t button_adc_get_key_level(button_driver_t *button_driver)
241241

242242
/** It starts only when the elapsed time is more than 1ms */
243243
if ((esp_timer_get_time() - g_button.unit[adc_btn->unit_id].ch[ch_index].last_time) > 1000) {
244-
vol = get_adc_volatge(adc_btn->unit_id, ch);
244+
vol = get_adc_voltage(adc_btn->unit_id, ch);
245245
g_button.unit[adc_btn->unit_id].ch[ch_index].last_time = esp_timer_get_time();
246246
}
247247

0 commit comments

Comments
 (0)