Skip to content

typo fix in get_adc_voltage : get_adc_volatge->get_adc_voltage (AEGHB-1105) #527

New issue

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions components/button/button_adc.c
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ esp_err_t button_adc_del(button_driver_t *button_driver)
return ESP_OK;
}

static uint32_t get_adc_volatge(adc_unit_t unit_id, uint8_t channel)
static uint32_t get_adc_voltage(adc_unit_t unit_id, uint8_t channel)
{
uint32_t adc_reading = 0;
int adc_raw = 0;
Expand Down Expand Up @@ -241,7 +241,7 @@ uint8_t button_adc_get_key_level(button_driver_t *button_driver)

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

Expand Down