mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
Замена ulong на unsigned long
This commit is contained in:
@@ -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") {
|
||||||
|
|||||||
Reference in New Issue
Block a user