remove debugging logs
This commit is contained in:
parent
14d40633f2
commit
7d2ddcbbdd
@ -122,21 +122,14 @@ static void generate_switch_leds(void) {
|
|||||||
|
|
||||||
static void set_text_and_color(const char* text_str, int color) {
|
static void set_text_and_color(const char* text_str, int color) {
|
||||||
if (xSemaphoreTake(xGuiSemaphore, portMAX_DELAY) == pdTRUE) {
|
if (xSemaphoreTake(xGuiSemaphore, portMAX_DELAY) == pdTRUE) {
|
||||||
ESP_LOGI(TAG, "set_text_and_color: setting text: %s", text_str);
|
|
||||||
lv_label_set_text(text, text_str);
|
lv_label_set_text(text, text_str);
|
||||||
ESP_LOGI(TAG, "set_text_and_color: set text");
|
|
||||||
lv_obj_center(text);
|
lv_obj_center(text);
|
||||||
ESP_LOGI(TAG, "set_text_and_color: setting %d", color);
|
|
||||||
if (last_style != nullptr) {
|
if (last_style != nullptr) {
|
||||||
ESP_LOGI(TAG, "set_text_and_color: removing %d", color);
|
|
||||||
lv_obj_remove_style(text, last_style, LV_STATE_DEFAULT);
|
lv_obj_remove_style(text, last_style, LV_STATE_DEFAULT);
|
||||||
}
|
}
|
||||||
ESP_LOGI(TAG, "set_text_and_color: adding %d", color);
|
|
||||||
lv_obj_add_style(text, color_styles[color], LV_STATE_DEFAULT);
|
lv_obj_add_style(text, color_styles[color], LV_STATE_DEFAULT);
|
||||||
last_style = color_styles[color];
|
last_style = color_styles[color];
|
||||||
ESP_LOGI(TAG, "set_text_and_color: style");
|
|
||||||
xSemaphoreGive(xGuiSemaphore);
|
xSemaphoreGive(xGuiSemaphore);
|
||||||
ESP_LOGI(TAG, "set_text_and_color: give");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user