mirror of
https://github.com/esphome/esphome.git
synced 2025-07-29 06:36:45 +00:00
Use a define
for log message constants (#8952)
This commit is contained in:
parent
4d347f1cc6
commit
da6af184a6
@ -1,11 +1,4 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "defines.h"
|
|
||||||
|
|
||||||
#ifdef USE_ESP8266
|
|
||||||
#define ESP_LOG_MSG_COMM_FAIL "Communication failed"
|
#define ESP_LOG_MSG_COMM_FAIL "Communication failed"
|
||||||
#define ESP_LOG_MSG_COMM_FAIL_FOR "Communication failed for '%s'"
|
#define ESP_LOG_MSG_COMM_FAIL_FOR "Communication failed for '%s'"
|
||||||
#else
|
|
||||||
constexpr const char *const ESP_LOG_MSG_COMM_FAIL = "Communication failed";
|
|
||||||
constexpr const char *const ESP_LOG_MSG_COMM_FAIL_FOR = "Communication failed for '%s'";
|
|
||||||
#endif
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user