remove newline from logging statements. (#5022)
remove newline from logging statements in code. The LOG_* functions will now magically add it at the end. --------- Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
This commit is contained in:
co-authored by
GitHub
Ben Meadors
parent
fb9f361052
commit
05e4a639a1
+4
-4
@@ -12,7 +12,7 @@
|
||||
void powerCommandsCheck()
|
||||
{
|
||||
if (rebootAtMsec && millis() > rebootAtMsec) {
|
||||
LOG_INFO("Rebooting\n");
|
||||
LOG_INFO("Rebooting");
|
||||
#if defined(ARCH_ESP32)
|
||||
ESP.restart();
|
||||
#elif defined(ARCH_NRF52)
|
||||
@@ -28,11 +28,11 @@ void powerCommandsCheck()
|
||||
Serial1.end();
|
||||
if (screen)
|
||||
delete screen;
|
||||
LOG_DEBUG("final reboot!\n");
|
||||
LOG_DEBUG("final reboot!");
|
||||
reboot();
|
||||
#else
|
||||
rebootAtMsec = -1;
|
||||
LOG_WARN("FIXME implement reboot for this platform. Note that some settings require a restart to be applied.\n");
|
||||
LOG_WARN("FIXME implement reboot for this platform. Note that some settings require a restart to be applied.");
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ void powerCommandsCheck()
|
||||
#endif
|
||||
|
||||
if (shutdownAtMsec && millis() > shutdownAtMsec) {
|
||||
LOG_INFO("Shutting down from admin command\n");
|
||||
LOG_INFO("Shutting down from admin command");
|
||||
#if defined(ARCH_NRF52) || defined(ARCH_ESP32) || defined(ARCH_RP2040)
|
||||
playShutdownMelody();
|
||||
power->shutdown();
|
||||
|
||||
Reference in New Issue
Block a user