Jun Furutani / libMiMic

Fork of libMiMic by Ryo Iizuka

Revision:
50:35e765380772
Parent:
37:fc4b4fd6a649
Child:
69:8c5f220441f5
--- a/core/net/NyLPC_cNet.c	Wed Aug 07 16:43:32 2013 +0000
+++ b/core/net/NyLPC_cNet.c	Thu Aug 08 15:21:43 2013 +0000
@@ -25,6 +25,7 @@
  *********************************************************************************/
 #include "NyLPC_cNet.h"
 #include "dhcp/NyLPC_cDhcpClient.h"
+#include "../uip/NyLPC_cUipService_protected.h"
 
 
 const char* NyLPC_cNet_PlatformName;
@@ -35,7 +36,9 @@
 void NyLPC_cNet_initialize(NyLPC_TcNet_t* i_inst)
 {
     //uipサービス初期化。いろいろ利用可能に。
-    NyLPC_cUipService_initialize();
+    if(!NyLPC_TcUipService_isInitService()){
+        NyLPC_cUipService_initialize();
+    }
 }
 
 void NyLPC_cNet_start(NyLPC_TcNet_t* i_inst,const NyLPC_TcNetConfig_t* i_ref_config)