From f9c77f53a17dbb12f228042d2f2549e5e306b1f3 Mon Sep 17 00:00:00 2001 From: gelidusresearch Date: Thu, 3 Oct 2024 22:44:43 -0500 Subject: [PATCH] Reduce tx and cmd intervals --- gdo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gdo.c b/gdo.c index 3d36440..d50efd9 100755 --- a/gdo.c +++ b/gdo.c @@ -101,7 +101,7 @@ static esp_timer_handle_t motion_detect_timer; static esp_timer_handle_t door_position_sync_timer; static esp_timer_handle_t obst_timer; static void *g_user_cb_arg; -static uint32_t g_tx_delay_ms = 50; +static uint32_t g_tx_delay_ms = 100; static portMUX_TYPE gdo_spinlock = portMUX_INITIALIZER_UNLOCKED; @@ -753,7 +753,7 @@ esp_err_t gdo_set_close_duration(uint16_t ms) { * @return ESP_OK on success, ESP_ERR_INVALID_ARG if the time is invalid. */ esp_err_t gdo_set_min_command_interval(uint32_t ms) { - if (ms < 50) { + if (ms < 300) { ESP_LOGE(TAG, "Invalid minimum command interval: %" PRIu32, ms); return ESP_ERR_INVALID_ARG; }