diff --git a/ESP-IDF_Robot/main/blink_example_main.c b/ESP-IDF_Robot/main/blink_example_main.c index ea5499267..f85347284 100644 --- a/ESP-IDF_Robot/main/blink_example_main.c +++ b/ESP-IDF_Robot/main/blink_example_main.c @@ -119,6 +119,9 @@ static void configure_button (void) { void app_main(void) { + // Initialize the config structure. + gpio_config_t io_conf = {}; + /* Configure the peripheral according to the LED type */ configure_led(); configure_button();