|
| 1 | +diff --git a/src/host/server.cpp b/src/host/server.cpp |
| 2 | +index dcae3a6..93ec51f 100644 |
| 3 | +--- a/src/host/server.cpp |
| 4 | ++++ b/src/host/server.cpp |
| 5 | +@@ -91,20 +91,20 @@ bool HdcServer::Initial(const char *listenString) |
| 6 | + WRITE_LOG(LOG_FATAL, "clsServerForClient Initial failed"); |
| 7 | + return false; |
| 8 | + } |
| 9 | +- clsUSBClt->InitLogging(ctxUSB); |
| 10 | ++ //clsUSBClt->InitLogging(ctxUSB); |
| 11 | + clsTCPClt = new HdcHostTCP(true, this); |
| 12 | +- clsUSBClt = new HdcHostUSB(true, this, ctxUSB); |
| 13 | ++ /*clsUSBClt = new HdcHostUSB(true, this, ctxUSB); |
| 14 | + if (clsUSBClt->Initial() != RET_SUCCESS) { |
| 15 | + WRITE_LOG(LOG_FATAL, "clsUSBClt Initial failed"); |
| 16 | + return false; |
| 17 | +- } |
| 18 | +- if (!clsServerForClient || !clsTCPClt || !clsUSBClt) { |
| 19 | ++ }*/ |
| 20 | ++ if (!clsServerForClient /*|| !clsTCPClt || !clsUSBClt*/) { |
| 21 | + WRITE_LOG(LOG_FATAL, "Class init failed"); |
| 22 | + return false; |
| 23 | + } |
| 24 | + |
| 25 | + #ifdef HDC_SUPPORT_UART |
| 26 | +- clsUARTClt = new HdcHostUART(*this); |
| 27 | ++ /*clsUARTClt = new HdcHostUART(*this); |
| 28 | + if (!clsUARTClt) { |
| 29 | + WRITE_LOG(LOG_FATAL, "Class init failed"); |
| 30 | + return false; |
| 31 | +@@ -112,7 +112,7 @@ bool HdcServer::Initial(const char *listenString) |
| 32 | + if (clsUARTClt->Initial() != RET_SUCCESS) { |
| 33 | + WRITE_LOG(LOG_FATAL, "clsUARTClt Class init failed."); |
| 34 | + return false; |
| 35 | +- } |
| 36 | ++ }*/ |
| 37 | + #endif |
| 38 | + return true; |
| 39 | + } |
0 commit comments