Modularizando o src

Dependencies:   EALib EthernetInterface_vz mbed-rtos mbed

Fork of header_main_colinas_V0-20-09-14 by VZTECH

Revision:
69:65665afbad5d
Parent:
0:4d17cd9c8f9d
Child:
70:714c33487aae
--- a/call.cpp	Fri Nov 07 17:57:55 2014 +0000
+++ b/call.cpp	Wed Nov 12 13:25:54 2014 +0000
@@ -7,7 +7,7 @@
     
     this->rtp_server_ext = rtp_server_ext;
     this->rtp_server_port = rtp_server_port;
-    this->rtp_server.set_address( __RPT_SEVER_IP__, rtp_server_port );
+    this->rtp_server.set_address( __RTP_SEVER_IP__, rtp_server_port );
     rtp_sock.set_blocking( false, 3 );
     this->rtp_sock.bind( cb_port ); // rtp port
     this->rtp_sock.init();
@@ -25,6 +25,7 @@
 
 char * VZ_call::get_eth_message( int * length ){
     uint8_t * pkg;
+    led1 = !led1;
     *length = rtp_sock.receiveFrom( rtp_server, server2cb, sizeof( server2cb ) );
     t.reset();
     
@@ -41,7 +42,6 @@
         *length = 240;
         return (char *) pkg;
     }
-    led1 = !led1;
     *length = 0;
     return NULL;
 }