Skip to content

Commit

Permalink
fixed Beurer BF700/800 device name comparison
Browse files Browse the repository at this point in the history
update internal openScale version code to 21
  • Loading branch information
oliexdev committed Dec 17, 2017
1 parent 49b92c3 commit f465e4e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions android_app/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ android {
applicationId "com.health.openscale"
minSdkVersion 18
targetSdkVersion 22 // don't set target sdk > 22 otherwise bluetooth le discovery need permission to ACCESS_COARSE_LOCATION
versionCode 20
versionName "1.6.1"
versionCode 21
versionName "1.6.2"
}

lintOptions {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public String defaultDeviceName() {

@Override
public boolean checkDeviceName(String btDeviceName) {
if (btDeviceName.startsWith("BEURER BF700") || btDeviceName.startsWith("BEURER BF800")) {
if (btDeviceName.toLowerCase().equals(new String("BEURER BF700").toLowerCase()) || btDeviceName.toLowerCase().equals(new String("BEURER BF800").toLowerCase())) {
return true;
}

Expand Down

1 comment on commit f465e4e

@linuxlurak
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for my BF700 Line 128 with this Content:
if (btDeviceName.startsWith("Beurer BF700") || btDeviceName.startsWith("Beurer BF800")) {
works.
"Beurer" is case sensitive

Please sign in to comment.