mirror of
https://github.com/esphome/esphome.git
synced 2026-10-11 13:54:12 +00:00
[st7735][st7789v][waveshare_epaper] Declare log tags with ESPHOME_LOG_TAG (#20295)
This commit is contained in:
@@ -218,7 +218,7 @@ static constexpr uint8_t PROGMEM
|
||||
100 }; // 100 ms delay
|
||||
|
||||
// clang-format on
|
||||
static const char *const TAG = "st7735";
|
||||
ESPHOME_LOG_TAG(TAG, "st7735");
|
||||
|
||||
ST7735::ST7735(ST7735Model model, int width, int height, int colstart, int rowstart, bool eightbitcolor, bool usebgr,
|
||||
bool invert_colors)
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
namespace esphome::st7789v {
|
||||
|
||||
static const char *const TAG = "st7789v";
|
||||
ESPHOME_LOG_TAG(TAG, "st7789v");
|
||||
#ifdef USE_ESP32
|
||||
static constexpr size_t TEMP_BUFFER_SIZE = 1024;
|
||||
#else
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
namespace esphome::waveshare_epaper {
|
||||
|
||||
static const char *const TAG = "waveshare_2.13v3";
|
||||
ESPHOME_LOG_TAG(TAG, "waveshare_2.13v3");
|
||||
|
||||
static const uint8_t PARTIAL_LUT[] = {
|
||||
0x32, // cmd
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
namespace esphome::waveshare_epaper {
|
||||
|
||||
static const char *const TAG = "waveshare_epaper";
|
||||
ESPHOME_LOG_TAG(TAG, "waveshare_epaper");
|
||||
|
||||
static const uint8_t LUT_SIZE_WAVESHARE = 30;
|
||||
|
||||
|
||||
@@ -1273,12 +1273,6 @@ def lint_no_std_nothrow(fname, match):
|
||||
r"\s*(?:=\s*\{?|[{(])\s*\"",
|
||||
prefilter="TAG",
|
||||
include=["esphome/components/*.cpp", "esphome/components/**/*.cpp"],
|
||||
# Deprecated components, converted in a follow-up PR
|
||||
exclude=[
|
||||
"esphome/components/st7735/*",
|
||||
"esphome/components/st7789v/*",
|
||||
"esphome/components/waveshare_epaper/*",
|
||||
],
|
||||
)
|
||||
def lint_log_tag_macro(fname, match):
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user