From aaaa2ee0ed641a66a43fd710d37f55fdac3c3559 Mon Sep 17 00:00:00 2001 From: Alexey Zholtikov Date: Sat, 18 Oct 2025 13:24:26 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5faa42e..766c700 100644 --- a/README.md +++ b/README.md @@ -32,10 +32,10 @@ In the application, add the component: void app_main(void) { esp_log_level_set("zh_ac_dimmer", ESP_LOG_NONE); - zh_ac_dimmer_init_config_t ac_dimmer_init_config = ZH_AC_DIMMER_INIT_CONFIG_DEFAULT(); + zh_ac_dimmer_init_config_t config = ZH_AC_DIMMER_INIT_CONFIG_DEFAULT(); ac_dimmer_init_config.zero_cross_gpio = GPIO_NUM_16; ac_dimmer_init_config.triac_gpio = GPIO_NUM_17; - zh_ac_dimmer_init(&ac_dimmer_init_config); + zh_ac_dimmer_init(&config); zh_ac_dimmer_start(); for (;;) {