mirror of
https://github.com/esphome/esphome.git
synced 2026-02-21 08:55:36 -07:00
Fix clang-format: use uppercase PREFIX constant name
This commit is contained in:
@@ -10,13 +10,13 @@ namespace version {
|
||||
static const char *const TAG = "version.text_sensor";
|
||||
|
||||
void VersionTextSensor::setup() {
|
||||
static const char prefix[] PROGMEM = ESPHOME_VERSION " (config hash 0x";
|
||||
static const char PREFIX[] PROGMEM = ESPHOME_VERSION " (config hash 0x";
|
||||
char version_str[128];
|
||||
|
||||
#ifdef USE_ESP8266
|
||||
strcpy_P(version_str, prefix);
|
||||
strcpy_P(version_str, PREFIX);
|
||||
#else
|
||||
strcpy(version_str, prefix);
|
||||
strcpy(version_str, PREFIX);
|
||||
#endif
|
||||
|
||||
char hash_str[9];
|
||||
|
||||
Reference in New Issue
Block a user