Sfoglia il codice sorgente

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

master
陈福行 3 anni fa
parent
commit
e55bb42250

+ 3
- 3
app/build.gradle Vedi File

@@ -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 Vedi File

@@ -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…
Annulla
Salva