Skip to content

Commit

Permalink
Changed Corsense fix regex to "^[0-6](\\s+|$)".
Browse files Browse the repository at this point in the history
  • Loading branch information
KennethEvans committed Sep 6, 2018
1 parent cd6e126 commit 9d8bf7e
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,7 @@ public HeartRateValues(BluetoothGattCharacteristic characteristic, long
if (USE_CORSENSE_FIX) {
// Take out first value if 0-6
//String rr1 = rr;
if (rr.length() == 1) {
rr = rr.replaceFirst("^[0-6]", "");
} else {
rr = rr.replaceFirst("^[0-6]\\s+", "");
}
rr = rr.replaceFirst("^[0-6](\\s+|$)", "");
//Log.d(TAG, "|" + rr1 + "|->|" + rr + "| |");
}
string += "\nR-R: " + rrString;
Expand Down

0 comments on commit 9d8bf7e

Please sign in to comment.