This commit is contained in:
Qiea
2024-11-12 14:53:30 +08:00
parent 572b24f867
commit 8c9b256242
2 changed files with 10 additions and 5 deletions

View File

@@ -44,7 +44,7 @@ void send_blocks(float* arr, char* uuid_str){
memset(_block, 0 ,sizeof(char)*100*100);
block_index = 0; // <20><><EFBFBD>ÿ<EFBFBD>
sprintf(_block, "{\"uuid\":\"%s\",\"Bid\":\"%d\",\"Eid\":\"%d\",\"Block\":\"%s\"}\n", uuid_str, total_len++, _total_len, block);
printf("%s", _block);
DEBUG_PRINTF("%s", _block);
myfree(SRAMEX,_block);
_block = NULL;
}
@@ -57,7 +57,7 @@ void send_blocks(float* arr, char* uuid_str){
memset(_block, 0 ,sizeof(char)*100*100);
block_index = 0;
sprintf(_block, "{\"uuid\":\"%s\",\"Bid\":\"%d\",\"Eid\":\"%d\",\"Block\":\"%s\"}\n", uuid_str, total_len, _total_len, block);
printf("%s", _block);
DEBUG_PRINTF("%s", _block);
myfree(SRAMEX,_block);
_block = NULL;
}