From 61edd6c83f9de777cd55a815402f15634ab6f5e5 Mon Sep 17 00:00:00 2001 From: LonerDan Date: Tue, 6 Aug 2024 15:08:36 +0200 Subject: [PATCH] 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 --- docs/en/api-reference/peripherals/gptimer.rst | 2 +- docs/zh_CN/api-reference/peripherals/gptimer.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/en/api-reference/peripherals/gptimer.rst b/docs/en/api-reference/peripherals/gptimer.rst index a156589674..3ca6b6d3c3 100644 --- a/docs/en/api-reference/peripherals/gptimer.rst +++ b/docs/en/api-reference/peripherals/gptimer.rst @@ -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: diff --git a/docs/zh_CN/api-reference/peripherals/gptimer.rst b/docs/zh_CN/api-reference/peripherals/gptimer.rst index cb9dd02e3b..020a5f27b2 100644 --- a/docs/zh_CN/api-reference/peripherals/gptimer.rst +++ b/docs/zh_CN/api-reference/peripherals/gptimer.rst @@ -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: