X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=Source%2Flayer3%2FDNEngine.cpp;h=9bb989580f33084ac6c1f2cb96e7ac32f9fb7be5;hb=9620cf0191d0a70ca9f7cd0c035f02f15e91ce20;hp=7d826be01795799914c3386173fd2e3a646935cb;hpb=a389e0be19cb5a84f820bc3ae58722e038a69595;p=dennco%2Fdennco.git diff --git a/Source/layer3/DNEngine.cpp b/Source/layer3/DNEngine.cpp index 7d826be..9bb9895 100644 --- a/Source/layer3/DNEngine.cpp +++ b/Source/layer3/DNEngine.cpp @@ -266,7 +266,7 @@ bool DNEngine::parseSettingFile(const char *contentRoot) if (tickIntervalSignal <= 0) { - tickIntervalSignal = tickIntervalFull / 5.0; + tickIntervalSignal = tickIntervalFull / 5.0f; } if (tickIntervalInput <= 0) { @@ -443,7 +443,7 @@ float DNEngine::doClientGetRequest(const char* path) bool DNEngine::doClientSetRequest(const char* path, const char* value) { - return doClientSetRequest(path, atof(value)); + return doClientSetRequest(path, (float)atof(value)); } bool DNEngine::doClientSetRequest(const char* path, float value) @@ -485,6 +485,8 @@ std::string DNEngine::getUIPath() //static void DNEngine::callbackSerialPortClosed(DNEngine *engine) { + (void)engine; + //TODO }