From 3084df33d3f256e9c9a6e37927d7ddc5eb293773 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 b836a05551..bc0f609592 100644 --- a/docs/en/api-reference/peripherals/gptimer.rst +++ b/docs/en/api-reference/peripherals/gptimer.rst @@ -261,7 +261,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)); .. only:: SOC_ETM_SUPPORTED and SOC_TIMER_SUPPORT_ETM diff --git a/docs/zh_CN/api-reference/peripherals/gptimer.rst b/docs/zh_CN/api-reference/peripherals/gptimer.rst index ecf9cf4cb4..c850717d76 100644 --- a/docs/zh_CN/api-reference/peripherals/gptimer.rst +++ b/docs/zh_CN/api-reference/peripherals/gptimer.rst @@ -261,7 +261,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)); .. only:: SOC_ETM_SUPPORTED and SOC_TIMER_SUPPORT_ETM