![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Modularizando o src
Dependencies: EALib EthernetInterface_vz mbed-rtos mbed
Fork of header_main_colinas_V0-20-09-14 by
Diff: call_box_manager.cpp
- Revision:
- 86:bf7b0d4c3232
- Parent:
- 81:3656f00ab3db
- Child:
- 89:0fe315117b00
--- a/call_box_manager.cpp Sun Jan 04 13:56:08 2015 +0000 +++ b/call_box_manager.cpp Mon Jan 05 12:43:12 2015 +0000 @@ -36,11 +36,12 @@ Call_Box * cb = (Call_Box * )v_cb->get_element( lst_index++ ); - if( cb != NULL && cb->status != cb_on_call ){ + //if( cb != NULL && cb->status != cb_on_call ){ + if( cb != NULL && cb->status == cb_idle ){ if( cb->get_ext() % 2 == 1 ){ Call_Box * cb_master = __find_CB__( v_cb, cb->get_ext() - 1 ); - if( cb_master != NULL && cb_master->status == cb_on_call ) return( 0x20 ); + if( cb_master != NULL && cb_master->status != cb_idle ) return( 0x20 ); } cb->set_msg_id( ( cb->get_msg_id() + 1 ) & ( ~BIT7 ) );