diff --git a/CMakeLists.txt b/CMakeLists.txt index c6c16a81..09278bed 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -383,7 +383,7 @@ endif() # Test program -add_executable(pip_test "main.cpp" "1.cpp") +add_executable(pip_test "main.cpp") target_link_libraries(pip_test pip pip_compress) diff --git a/main_.cpp b/main_.cpp index 557171f9..109f9743 100644 --- a/main_.cpp +++ b/main_.cpp @@ -53,8 +53,8 @@ class B: public PIObject { PIOBJECT(B) public: B() {} - EVENT1(eventB1, float, f); - EVENT1(eventB2, PIString, s); + EVENT1(eventB1, float, f) + EVENT1(eventB2, PIString, s) //uchar _[0x20]; }; diff --git a/main_tcp_server.cpp b/main_tcp_server.cpp index 7cfb4162..58cac913 100644 --- a/main_tcp_server.cpp +++ b/main_tcp_server.cpp @@ -1,7 +1,7 @@ #include "pip.h" class Client: public PIObject { - PIOBJECT(Client); + PIOBJECT(Client) public: Client(PIEthernet * eth_) { eth = eth_; @@ -12,7 +12,7 @@ public: } ~Client() {} EVENT_HANDLER2(void, readed, uchar * , data, int, size) { - PIByteArray ba(data, size) + PIByteArray ba(data, size); piCoutObj << uint(eth) << "readed" << size << "bytes" << Hex << ba; eth->write(ba); } @@ -32,7 +32,7 @@ public: }; class Server: public PIObject { - PIOBJECT(Server); + PIOBJECT(Server) public: Server(int port) { eth = new PIEthernet(PIEthernet::TCP_Server);