Use haspDevice for hostname

This commit is contained in:
fvanroie 2021-02-18 19:17:00 +01:00
parent 7857ea03ed
commit 06cba2ea8e

View File

@ -562,7 +562,7 @@ void debugPrintPrefix(uint8_t tag, int level, Print * _logOutput)
syslogClient->print(F("1 - ")); syslogClient->print(F("1 - "));
} }
syslogClient->print(mqttGetNodename()); syslogClient->print(haspDevice.get_hostname());
syslogClient->print(F(" ")); syslogClient->print(F(" "));
debugPrintTag(tag, _logOutput); debugPrintTag(tag, _logOutput);
@ -658,8 +658,7 @@ void debugPreSetup(JsonObject settings)
} }
#if LV_USE_LOG != 0 #if LV_USE_LOG != 0
void debugLvglLogEvent(lv_log_level_t level, const char * file, uint32_t line, const char * funcname, void debugLvglLogEvent(lv_log_level_t level, const char* file, uint32_t line, const char* funcname, const char* descr)
const char * descr)
{ {
/* used for duplicate detection */ /* used for duplicate detection */
static uint32_t lastDbgLine; static uint32_t lastDbgLine;