Remove TAG from LVGL log API

The filename is appended at the beginning of the log output by default, we don't need to do it.
This commit is contained in:
C47D 2021-10-22 18:41:47 -05:00
parent 9c886307b2
commit a0e915eebc
17 changed files with 58 additions and 82 deletions

View file

@ -19,7 +19,6 @@
/*********************
* DEFINES
*********************/
#define TAG "ST7735S: "
#define AXP192_I2C_ADDRESS 0x34
/**********************
@ -114,7 +113,7 @@ void st7735s_init(void)
vTaskDelay(100 / portTICK_RATE_MS);
#endif
LV_LOG_INFO(TAG, "ST7735S initialization.");
LV_LOG_INFO("ST7735S initialization.");
//Send all the commands
uint16_t cmd = 0;
@ -210,7 +209,7 @@ static void st7735s_set_orientation(uint8_t orientation)
"PORTRAIT", "PORTRAIT_INVERTED", "LANDSCAPE", "LANDSCAPE_INVERTED"
};
LV_LOG_INFO(TAG, "Display orientation: %s", orientation_str[orientation]);
LV_LOG_INFO("Display orientation: %s", orientation_str[orientation]);
/*
Portrait: 0xC8 = ST77XX_MADCTL_MX | ST77XX_MADCTL_MY | ST77XX_MADCTL_BGR
@ -219,7 +218,7 @@ static void st7735s_set_orientation(uint8_t orientation)
*/
uint8_t data[] = {0xC8, 0xC8, 0xA8, 0xA8};
LV_LOG_INFO(TAG, "0x36 command value: 0x%02X", data[orientation]);
LV_LOG_INFO("0x36 command value: 0x%02X", data[orientation]);
st7735s_send_cmd(ST7735_MADCTL);
st7735s_send_data((void *) &data[orientation], 1);
@ -231,7 +230,7 @@ static void axp192_write_byte(uint8_t addr, uint8_t data)
{
err = lvgl_i2c_write(CONFIG_LV_I2C_DISPLAY_PORT, AXP192_I2C_ADDRESS, addr, &data, 1);
if (ret != ESP_OK) {
LV_LOG_ERROR(TAG, "AXP192 send failed. code: 0x%.2X", ret);
LV_LOG_ERROR("AXP192 send failed. code: 0x%.2X", ret);
}
}
@ -243,7 +242,7 @@ static void axp192_init()
axp192_write_byte(0x10, 0xFF); // OLED_VPP Enable
axp192_write_byte(0x28, 0xCC); // Enable LDO2&LDO3, LED&TFT 3.0V
axp192_sleep_out();
LV_LOG_INFO(TAG, "AXP192 initialized, power enabled for LDO2 and LDO3");
LV_LOG_INFO("AXP192 initialized, power enabled for LDO2 and LDO3");
}
static void axp192_sleep_in()