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: vector.cpp
- Revision:
- 4:de46f0d9b14d
- Parent:
- 0:4d17cd9c8f9d
--- a/vector.cpp Wed Sep 10 18:21:48 2014 +0000 +++ b/vector.cpp Thu Sep 11 14:23:47 2014 +0000 @@ -19,6 +19,7 @@ } void Vector::remove_element( int position ){ + debug_msg(" Removendo elemento %d", position ); if( position > -1 && position < this->elements ){ if( position == 0 && this->elements == 1 ) { this->elements = 0; @@ -26,9 +27,10 @@ this->objects = NULL; }else{ this->objects[ position ] = this->objects[ --this->elements ]; - this->objects = ( Object ** )realloc( this->objects, sizeof ( Object * ) * this->elements ); + this->objects = ( Object ** )realloc( this->objects, sizeof ( Object * ) * this->elements ); } } + debug_msg(" remocao bem sucedida" ); } int Vector::find_element( Object * e ){