chore: delete some log.

This commit is contained in:
Ivan Li 2023-01-28 21:01:47 +08:00
parent 4d822a8c7d
commit 42ec3c7d09
3 changed files with 4 additions and 6 deletions

View File

@ -7,7 +7,7 @@
"idf.openOcdConfigs": [ "idf.openOcdConfigs": [
"board/esp32c3-builtin.cfg" "board/esp32c3-builtin.cfg"
], ],
"idf.port": "/dev/cu.usbmodem149201", "idf.port": "/dev/cu.usbserial-14910",
"idf.pythonBinPath": "/Users/ivan/.espressif/python_env/idf4.4_py3.8_env/bin/python", "idf.pythonBinPath": "/Users/ivan/.espressif/python_env/idf4.4_py3.8_env/bin/python",
"idf.toolsPath": "/Users/ivan/.espressif", "idf.toolsPath": "/Users/ivan/.espressif",
"idf.gitPath": "/usr/bin/git", "idf.gitPath": "/usr/bin/git",

View File

@ -242,7 +242,6 @@ void light_init_strip() {
void light_play_colors(uint16_t len, uint8_t *buffer) { void light_play_colors(uint16_t len, uint8_t *buffer) {
light_mode = light_mode_desktop_sending_colors; light_mode = light_mode_desktop_sending_colors;
printf("COLORS=%.*s\r\n", len, buffer);
for (uint16_t led_index = 0, buffer_cursor = 0; for (uint16_t led_index = 0, buffer_cursor = 0;
led_index < STRIP_LED_NUMBER && buffer_cursor < len; led_index < STRIP_LED_NUMBER && buffer_cursor < len;

View File

@ -83,14 +83,14 @@ static void mqtt_event_handler(void *handler_args, esp_event_base_t base,
ESP_LOGI(MQTT_TAG, "MQTT_EVENT_PUBLISHED, msg_id=%d", event->msg_id); ESP_LOGI(MQTT_TAG, "MQTT_EVENT_PUBLISHED, msg_id=%d", event->msg_id);
break; break;
case MQTT_EVENT_DATA: case MQTT_EVENT_DATA:
ESP_LOGI(MQTT_TAG, "MQTT_EVENT_DATA"); // ESP_LOGI(MQTT_TAG, "MQTT_EVENT_DATA");
if (strncmp(event->topic, MQTT_KEY_DESKTOP_ONLINE, event->topic_len) == if (strncmp(event->topic, MQTT_KEY_DESKTOP_ONLINE, event->topic_len) ==
0) { 0) {
xEventGroupSetBits(s_mqtt_event_group, MQTT_DESKTOP_ONLINE_BIT); xEventGroupSetBits(s_mqtt_event_group, MQTT_DESKTOP_ONLINE_BIT);
} else if (strncmp(event->topic, MQTT_KEY_DESKTOP_COLORS, } else if (strncmp(event->topic, MQTT_KEY_DESKTOP_COLORS,
event->topic_len) == 0) { event->topic_len) == 0) {
printf("LEN=%d, DATA=%.*s\r\n", event->data_len, event->data_len, // printf("LEN=%d, DATA=%.*s\r\n", event->data_len, event->data_len,
event->data); // event->data);
memcpy(mqtt_colors_buffer, event->data, memcpy(mqtt_colors_buffer, event->data,
MIN(event->data_len, NUMBER_OF_LEDS * 3)); MIN(event->data_len, NUMBER_OF_LEDS * 3));
xEventGroupSetBits(s_mqtt_event_group, xEventGroupSetBits(s_mqtt_event_group,
@ -177,7 +177,6 @@ static bool waiting_for_desktop_sending_colors() {
} }
} }
static bool waiting_and_get_colors() { static bool waiting_and_get_colors() {
ESP_LOGI(MQTT_TAG, "aaa bits: %x", xEventGroupGetBits(s_mqtt_event_group));
EventBits_t bits = EventBits_t bits =
xEventGroupWaitBits(s_mqtt_event_group, MQTT_COLORS_STAND_BY_BIT, pdFALSE, xEventGroupWaitBits(s_mqtt_event_group, MQTT_COLORS_STAND_BY_BIT, pdFALSE,
pdFALSE, portMAX_DELAY); pdFALSE, portMAX_DELAY);