![](/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: utils.cpp
- Revision:
- 124:c1b6c893e1c3
- Parent:
- 122:480c44b0e205
- Child:
- 135:2f4290590e51
diff -r 1d395b5a4cad -r c1b6c893e1c3 utils.cpp --- a/utils.cpp Mon May 11 19:21:39 2015 +0000 +++ b/utils.cpp Wed May 13 14:25:57 2015 +0000 @@ -27,7 +27,18 @@ return hexbuf; } -int ls_comp( const void * a, const void * b ){ return( *( int * )a - *( int * )b ); } +int ls_comp ( const void * a, const void * b ) +{ + if ( reverse_list ) return( *( int * )b - *( int * )a ); + + else return( *( int * )a - *( int * )b ); + +} + +int wake_comp ( const void * a, const void * b ) +{ + return( *( int * )a - *( int * )b ); +} int convert_ext_to_port( int ext ){ if( ext < 1000 ) return ext;