mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 08:19:52 +03:00
use flash mem for strings when we can
This commit is contained in:
@@ -110,7 +110,7 @@ time_t ICACHE_FLASH_ATTR NtpClient::getNtpTime() {
|
|||||||
time_t UnixUTCtime = (highWord << 16 | lowWord) - 2208988800UL;
|
time_t UnixUTCtime = (highWord << 16 | lowWord) - 2208988800UL;
|
||||||
time_t adjustedtime = (*tz).toLocal(UnixUTCtime, &tcr);
|
time_t adjustedtime = (*tz).toLocal(UnixUTCtime, &tcr);
|
||||||
|
|
||||||
myESP.myDebug("[NTP] Internet time: %02d:%02d:%02d UTC on %d/%d. Local time: %02d:%02d:%02d %s",
|
myESP.myDebug_P(PSTR("[NTP] Internet time: %02d:%02d:%02d UTC on %d/%d. Local time: %02d:%02d:%02d %s"),
|
||||||
to_hour(UnixUTCtime),
|
to_hour(UnixUTCtime),
|
||||||
to_minute(UnixUTCtime),
|
to_minute(UnixUTCtime),
|
||||||
to_second(UnixUTCtime),
|
to_second(UnixUTCtime),
|
||||||
|
|||||||
@@ -1784,7 +1784,7 @@ void _process_UBADevices(_EMS_RxTelegram * EMS_RxTelegram) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!exists) {
|
if (!exists) {
|
||||||
myDebug("[EMS] Detected new EMS Device with ID 0x%02X. Fetching version information...", device_id);
|
myDebug_P(PSTR("[EMS] Detected new EMS Device with ID 0x%02X. Fetching version information..."), device_id);
|
||||||
ems_doReadCommand(EMS_TYPE_Version, device_id); // get version, but ignore ourselves
|
ems_doReadCommand(EMS_TYPE_Version, device_id); // get version, but ignore ourselves
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user