OSDN Git Service

[dennco] alpha 2.0. wrap up
[dennco/dennco.git] / Source / layer3 / DNEngine.cpp
index 7d826be..9bb9895 100644 (file)
@@ -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
 }