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") {