Modularizando o src
Dependencies: EALib EthernetInterface_vz mbed-rtos mbed
Fork of header_main_colinas_V0-20-09-14 by
Diff: call_box.cpp
- Revision:
- 3:cd9148672e25
- Parent:
- 1:a1758104fa1d
- Child:
- 4:de46f0d9b14d
diff -r 93bec7313ccc -r cd9148672e25 call_box.cpp --- a/call_box.cpp Wed Sep 10 14:32:19 2014 +0000 +++ b/call_box.cpp Wed Sep 10 18:21:48 2014 +0000 @@ -28,7 +28,7 @@ void Call_Box::reset_elapsed_time( void ){ this->t.reset(); remaining_attempts = __MAX_ATTEMPTS__; - timeout = __TIMEOUT__; +// timeout = __TIMEOUT__; } bool Call_Box::is_timeout( void ){ @@ -36,8 +36,8 @@ } uint8_t Call_Box::reconfigure_timeout( void ){ - static int count = 1; - if( timeout != __MAX_TIMEOUT__ ) timeout = __STEP__ * count++; + //static int count = 1; + //if( timeout != __MAX_TIMEOUT__ ) timeout = __STEP__ * count++; t.reset(); return( remaining_attempts-- ); }