Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: EALib EthernetInterface_vz mbed-rtos mbed
Fork of header_main_colinas_V0-20-09-14 by
Diff: sip_manager.cpp
- Revision:
- 135:2f4290590e51
- Parent:
- 122:480c44b0e205
diff -r 395678c651d8 -r 2f4290590e51 sip_manager.cpp --- a/sip_manager.cpp Tue Sep 01 19:34:34 2015 +0000 +++ b/sip_manager.cpp Thu Sep 10 20:11:35 2015 +0000 @@ -1,11 +1,16 @@ #include "sip_manager.h" -int sip_manager( Vector * v_cb ){ - static int sip_index = 0; - if( v_cb != NULL ){ - if( v_cb->size() > 0 ){ - if( sip_index >= v_cb->size() ) sip_index = 0; +int sip_manager ( Vector * v_cb ) +{ + if ( v_cb != NULL ) + { + static int sip_index = 0; + + if ( v_cb -> size () > 0 ) + { + if ( sip_index >= v_cb -> size () ) sip_index = 0; }else return 0; + Call_Box * cb = (Call_Box * )v_cb->get_element( sip_index ); /* Retorna = 0 :: ok