bosko lekovic
/
ETHtoCOM_10
nova verzija tcp+udp->serial com
Diff: DataFlash/flashDataBlock.cpp
- Revision:
- 26:c14d034d7459
- Parent:
- 22:11279d24a105
--- a/DataFlash/flashDataBlock.cpp Thu Jun 18 22:54:35 2020 +0200 +++ b/DataFlash/flashDataBlock.cpp Fri Jul 10 11:33:05 2020 +0200 @@ -37,7 +37,7 @@ // printf("Flash block device erase size: %x\n\r", erase_size = bd.get_erase_size()); // printf("Flash block device geterase value: %x\n\r", erase_value = bd.get_erase_value()); - if( bd.is_valid_read( 0, bd.get_read_size() ) ) printf(" flash data block read valid \n\r"); + if( bd.is_valid_read( 0, bd.get_read_size() ) ) ;//printf(" flash data block read valid \n\r"); else {printf(" flash data block read NOT valid \n\r"); return 2;} return 0; @@ -50,8 +50,8 @@ int scale_buffer_dimension( int val ) { - if( val > device_size ) { val = buffer_dimension = device_size; printf("buf_dim = %d\n\r", buffer_dimension);} - else if( val > buffer_dimension ) { buffer_dimension = val; printf("buf_dim = %d\n\r", buffer_dimension);} + if( val > device_size ) { val = buffer_dimension = device_size; /*printf("buf_dim = %d\n\r", buffer_dimension);*/} + else if( val > buffer_dimension ) { buffer_dimension = val; /* printf("buf_dim = %d\n\r", buffer_dimension);*/} return val; }