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; }