Skip to content

Commit

Permalink
Remove old comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Ostrzyciel committed May 23, 2023
1 parent edfa590 commit cf5d1d9
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/components/ble/HeartRateService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -544,18 +544,6 @@ void HeartRateService::insert_into_buffer_1(float value){
}
buffer_1[i+1] = value;
buffer_1_index++;

// todo change to inserting into a sorted array
// for(int i = 1; i < buffer_1_index; i++){
// float key = buffer_1[i];
// int j = i - 1;
// while(j >= 0 && buffer_1[j] > key){
// buffer_1[j+1] = buffer_1[j];
// j--;
// }
// buffer_1[j+1] = key;
// }

}


Expand Down

0 comments on commit cf5d1d9

Please sign in to comment.