Замена ulong на unsigned long

This commit is contained in:
2023-06-29 19:23:14 +03:00
parent 68585ad4b6
commit fe0c49b5a2

View File

@@ -39,14 +39,14 @@ class RTC : public IoTItem {
return this; return this;
} }
ulong getRtcUnixTime() { unsigned long getRtcUnixTime() {
return _watch->gettimeUnix(); return _watch->gettimeUnix();
} }
void onModuleOrder(String &key, String &value) { void onModuleOrder(String &key, String &value) {
if (key == "setUTime") { if (key == "setUTime") {
char *stopstring; char *stopstring;
ulong ut = strtoul(value.c_str(), &stopstring, 10); unsigned long ut = strtoul(value.c_str(), &stopstring, 10);
_watch->settimeUnix(ut); _watch->settimeUnix(ut);
SerialPrint("i", F("RTC"), "Устанавливаем время: " + value); SerialPrint("i", F("RTC"), "Устанавливаем время: " + value);
} else if (key == "setSysTime") { } else if (key == "setSysTime") {