Преглед изворни кода

Fix the problem that the broadcast scale can calculate the body fat data without transmitting the algorithm ID

master
陈福行 пре 3 година
родитељ
комит
e55bb42250
2 измењених фајлова са 4 додато и 3 уклоњено
  1. 3
    3
      app/build.gradle
  2. 1
    0
      app/src/main/java/aicare/net/cn/iweightdemo/MyActivity.java

+ 3
- 3
app/build.gradle Прегледај датотеку

@@ -7,8 +7,8 @@ android {
applicationId "aicare.net.cn.sdk.iweightdemo"
minSdkVersion 18
targetSdkVersion 29
versionCode 13
versionName "1.3.1"
versionCode 14
versionName "1.3.2"
}
buildTypes {
release {
@@ -38,6 +38,6 @@ dependencies {
implementation 'com.google.android.material:material:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
testImplementation 'junit:junit:4.12'
implementation 'com.github.elinkthings:BodyFatScaleSDKRepositoryAndroid:1.3.1'
implementation 'com.github.elinkthings:BodyFatScaleSDKRepositoryAndroid:1.3.2'

}

+ 1
- 0
app/src/main/java/aicare/net/cn/iweightdemo/MyActivity.java Прегледај датотеку

@@ -451,6 +451,7 @@ public class MyActivity extends BleProfileServiceReadyActivity implements Device
WeightData weightData = new WeightData();
weightData.setAdc(data.getAdc());
weightData.setCmdType(data.getAgreementType());
weightData.setAlgorithmType(data.getAlgorithmId());
weightData.setDeviceType(broadData.getDeviceType());
switch (data.getUnitType()) {
case 1:

Loading…
Откажи
Сачувај