Skip to content

Commit 881aae4

Browse files
Final implementation.
1 parent 073165b commit 881aae4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/com/example/fitnessstudio/blood_pressure/BloodPressureActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public void handleMessage(@NonNull Message msg) {
5858
if (msg.what == MESSAGE_UPDATE_REALTIME2) {
5959
String string = msg.obj.toString();
6060
string = string.substring(string.indexOf(":") + 2, string.lastIndexOf(' '));
61-
double answer = Double.parseDouble(string) * 1.5;
61+
double answer = Double.parseDouble(string) * 2.0;
6262
answerStored = answer;
6363
string = "Blood pressure calculated: " + answer + " mmHg";
6464
((TextView) findViewById(R.id.bloodPressureAnswer)).setText(string);

0 commit comments

Comments
 (0)