From 225934cf7877a581b74c5782a31c84ee4febb0f7 Mon Sep 17 00:00:00 2001 From: Jesus Velasquez Date: Mon, 6 May 2024 21:19:37 -0500 Subject: [PATCH] changed log level at main , and bugfix at knobs --- components/rotary_encoder/src/rotary_encoder_pcnt_ec11.c | 4 ++-- main/main.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/rotary_encoder/src/rotary_encoder_pcnt_ec11.c b/components/rotary_encoder/src/rotary_encoder_pcnt_ec11.c index 495b0562..ec84fdb1 100755 --- a/components/rotary_encoder/src/rotary_encoder_pcnt_ec11.c +++ b/components/rotary_encoder/src/rotary_encoder_pcnt_ec11.c @@ -295,8 +295,6 @@ encoder_state_t encoder_state(rotary_encoder_t *encoder) encoder->fsm_state = S_BUTTON_RELEASED; encoder->fsm_timer = now; ESP_LOGI(TAG, "PRESSED->RELEASED"); - EncoderState = ENC_BUT_SHORT_PRESS; - ESP_LOGI(TAG, "Pressed"); } else { @@ -338,6 +336,8 @@ encoder_state_t encoder_state(rotary_encoder_t *encoder) encoder->fsm_state = S_B_IDLE; encoder->fsm_timer = now; ESP_LOGI(TAG, "RELEASED->IDLE"); + EncoderState = ENC_BUT_SHORT_PRESS; + ESP_LOGI(TAG, "Pressed"); } } break; diff --git a/main/main.c b/main/main.c index 158d633c..b7800920 100755 --- a/main/main.c +++ b/main/main.c @@ -164,7 +164,7 @@ void app_main() ESP_LOGI("MAIN", "bt device name is: %s", config.bt_device_name); // Set log level of the progam - esp_log_level_set("*", ESP_LOG_INFO); + esp_log_level_set("*", ESP_LOG_ERROR); ESP_LOGI("MAIN", "LOGI"); ESP_LOGW("MAIN", "LOGW");