Skip to content

Commit

Permalink
Fixed error and improved stableness
Browse files Browse the repository at this point in the history
  • Loading branch information
hdtuanss committed Apr 28, 2023
1 parent 24bc776 commit 36bc4b7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions src/src/LTESniffer_Core.cc
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,7 @@ bool LTESniffer_Core::run(){

/* Print statistic of harq retransmission*/
//if (harq_mode){ harq.printHARQDatabase(); }
return EXIT_SUCCESS;
}

void LTESniffer_Core::stop() {
Expand Down
18 changes: 9 additions & 9 deletions src/src/SubframeWorker.cc
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,15 @@ uint16_t get_tti_ul_harq(uint16_t cur_tti)
}
}

int update_rv(int old_rv){
if (old_rv == 0){
return 2;
} else if (old_rv == 2){
return 3;
} else if (old_rv == 3){
return 1;
}
}
// int update_rv(int old_rv){
// if (old_rv == 0){
// return 2;
// } else if (old_rv == 2){
// return 3;
// } else if (old_rv == 3){
// return 1;
// }
// }

void SubframeWorker::work(){
std::string test_string = '[' + std::to_string(idx) + ']' + '[' + std::to_string(sfn) + '-' + std::to_string(sf_idx) + ']';
Expand Down

0 comments on commit 36bc4b7

Please sign in to comment.