Skip to content

Commit fb9b7b7

Browse files
Reduce tx and cmd intervals
1 parent 76ba232 commit fb9b7b7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

gdo.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ static gdo_status_t g_status = {
8686
.close_ms = 0,
8787
.door_position = -1,
8888
.door_target = -1,
89-
.client_id = 0x666,
89+
.client_id = 0x5AFE,
9090
.rolling_code = 0,
9191
};
9292

@@ -101,7 +101,7 @@ static esp_timer_handle_t motion_detect_timer;
101101
static esp_timer_handle_t door_position_sync_timer;
102102
static esp_timer_handle_t obst_timer;
103103
static void *g_user_cb_arg;
104-
static uint32_t g_tx_delay_ms = 50;
104+
static uint32_t g_tx_delay_ms = 250; // Less than 250 is too frequent and brownouts many wall controllers
105105
static portMUX_TYPE gdo_spinlock = portMUX_INITIALIZER_UNLOCKED;
106106

107107

@@ -753,7 +753,7 @@ esp_err_t gdo_set_close_duration(uint16_t ms) {
753753
* @return ESP_OK on success, ESP_ERR_INVALID_ARG if the time is invalid.
754754
*/
755755
esp_err_t gdo_set_min_command_interval(uint32_t ms) {
756-
if (ms < 50) {
756+
if (ms < 250) {
757757
ESP_LOGE(TAG, "Invalid minimum command interval: %" PRIu32, ms);
758758
return ESP_ERR_INVALID_ARG;
759759
}

0 commit comments

Comments
 (0)