mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-27 02:13:10 +00:00
refactor(examples): reformat peripheral examples with astyle_py
This commit is contained in:
@@ -41,7 +41,6 @@ static adc_channel_t channel[2] = {ADC_CHANNEL_2, ADC_CHANNEL_3};
|
||||
static TaskHandle_t s_task_handle;
|
||||
static const char *TAG = "EXAMPLE";
|
||||
|
||||
|
||||
static bool IRAM_ATTR s_conv_done_cb(adc_continuous_handle_t handle, const adc_continuous_evt_data_t *edata, void *user_data)
|
||||
{
|
||||
BaseType_t mustYield = pdFALSE;
|
||||
@@ -103,7 +102,7 @@ void app_main(void)
|
||||
ESP_ERROR_CHECK(adc_continuous_register_event_callbacks(handle, &cbs, NULL));
|
||||
ESP_ERROR_CHECK(adc_continuous_start(handle));
|
||||
|
||||
while(1) {
|
||||
while (1) {
|
||||
|
||||
/**
|
||||
* This is to show you the way to use the ADC continuous mode driver event callback.
|
||||
|
Reference in New Issue
Block a user