bosko lekovic
/
EthToCom_11
nova proba
Diff: TcpServerToFlash.cpp
- Revision:
- 21:2232f5a34eb4
- Parent:
- 19:7bdb1a10043f
- Child:
- 22:11279d24a105
diff -r d8277082f4e3 -r 2232f5a34eb4 TcpServerToFlash.cpp --- a/TcpServerToFlash.cpp Sat May 23 23:37:10 2020 +0200 +++ b/TcpServerToFlash.cpp Mon May 25 22:19:36 2020 +0200 @@ -188,7 +188,7 @@ if(!strcmp( type, "POST") ) { - tcpServerBlock++; + tcpServerBlock = 1; printf("tcpServThread: ___stop komunikacije\n\r"); // scomRxThreadCancel(); @@ -200,8 +200,9 @@ putHTMLintoFLASH( gpc_html ); // upis parametara iz HTMLa u FLASH //restart_TcpClientsConnection(1); - restart_TcpClients(); - +restart_TcpClients(); +restart_UdpClients(); +restart_SerialCom( ); // vratiti podatke iz Flasha u HTML !!!!!! // ethRestart( ); // udpRxThreadsRiseUp( ); @@ -266,7 +267,7 @@ bws = 0; //m.unlock(); - if( tcpServerBlock) {tcpServerBlock--;printf("tcpServThread: tcpServerBlock=%d\n\r", tcpServerBlock);} + tcpServerBlock = 0; }