voltando a versao de n aberturas e fechamentos de sockets data 19/09
Dependencies: EthernetInterface NTPClient mbed-rtos mbed EALib
Fork of header_main_publish by
Diff: call_box.cpp
- Revision:
- 3:cd9148672e25
- Parent:
- 1:a1758104fa1d
- Child:
- 4:de46f0d9b14d
--- 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-- ); }