docs(gptimer): remove incorrect param from example

Fixes call to `gptimer_start` in one of the examples
which includes extra second parameter `&alarm_config`,
when the function takes only one.

Mreges https://github.com/espressif/esp-idf/pull/14310
This commit is contained in:
LonerDan 2024-08-06 15:08:36 +02:00 committed by morris
parent 6d79a72d62
commit 61edd6c83f
2 changed files with 2 additions and 2 deletions

View File

@ -257,7 +257,7 @@ Alarm value can be updated dynamically inside the ISR handler callback, by chang
};
ESP_ERROR_CHECK(gptimer_register_event_callbacks(gptimer, &cbs, queue));
ESP_ERROR_CHECK(gptimer_enable(gptimer));
ESP_ERROR_CHECK(gptimer_start(gptimer, &alarm_config));
ESP_ERROR_CHECK(gptimer_start(gptimer));
.. _power-management:

View File

@ -257,7 +257,7 @@
};
ESP_ERROR_CHECK(gptimer_register_event_callbacks(gptimer, &cbs, queue));
ESP_ERROR_CHECK(gptimer_enable(gptimer));
ESP_ERROR_CHECK(gptimer_start(gptimer, &alarm_config));
ESP_ERROR_CHECK(gptimer_start(gptimer));
.. _power-management: