Skip to content

Commit

Permalink
Reduce tx and cmd intervals
Browse files Browse the repository at this point in the history
  • Loading branch information
GelidusResearch committed Oct 4, 2024
1 parent 76ba232 commit f9c77f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gdo.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;


Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit f9c77f5

Please sign in to comment.