File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ esp_err_t button_adc_del(button_driver_t *button_driver)
211
211
return ESP_OK ;
212
212
}
213
213
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 )
215
215
{
216
216
uint32_t adc_reading = 0 ;
217
217
int adc_raw = 0 ;
@@ -241,7 +241,7 @@ uint8_t button_adc_get_key_level(button_driver_t *button_driver)
241
241
242
242
/** It starts only when the elapsed time is more than 1ms */
243
243
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 );
245
245
g_button .unit [adc_btn -> unit_id ].ch [ch_index ].last_time = esp_timer_get_time ();
246
246
}
247
247
You can’t perform that action at this time.
0 commit comments