Skip to content

Commit

Permalink
changed log level at main , and bugfix at knobs
Browse files Browse the repository at this point in the history
  • Loading branch information
JesusVC94 committed May 7, 2024
1 parent 4e11497 commit 225934c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions components/rotary_encoder/src/rotary_encoder_pcnt_ec11.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion main/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 225934c

Please sign in to comment.