From fe0c49b5a20b42848f133db6a746762610d6e8ea Mon Sep 17 00:00:00 2001 From: Ilya Belyakov Date: Thu, 29 Jun 2023 19:23:14 +0300 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D0=BC=D0=B5=D0=BD=D0=B0=20ulong=20?= =?UTF-8?q?=D0=BD=D0=B0=20unsigned=20long?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/sensors/RTC/RTC.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/sensors/RTC/RTC.cpp b/src/modules/sensors/RTC/RTC.cpp index 511bb91a..8446ed98 100644 --- a/src/modules/sensors/RTC/RTC.cpp +++ b/src/modules/sensors/RTC/RTC.cpp @@ -39,14 +39,14 @@ class RTC : public IoTItem { return this; } - ulong getRtcUnixTime() { + unsigned long getRtcUnixTime() { return _watch->gettimeUnix(); } void onModuleOrder(String &key, String &value) { if (key == "setUTime") { char *stopstring; - ulong ut = strtoul(value.c_str(), &stopstring, 10); + unsigned long ut = strtoul(value.c_str(), &stopstring, 10); _watch->settimeUnix(ut); SerialPrint("i", F("RTC"), "Устанавливаем время: " + value); } else if (key == "setSysTime") {