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)
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
You can’t perform that action at this time.
0 commit comments