From f157d4186cd66d531c83b9317c37e5c67ee4a76c Mon Sep 17 00:00:00 2001 From: youn7986 Date: Thu, 1 Jul 2021 17:09:45 +0900 Subject: [PATCH 1/2] BigAPSMainInfoInquirePacket is activated from version 3.0 or higher. --- build.gradle | 2 +- .../nightscout/androidaps/diaconn/service/DiaconnG8Service.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 66960d8c38..d837484cb6 100644 --- a/build.gradle +++ b/build.gradle @@ -44,7 +44,7 @@ buildscript { maven { url "https://plugins.gradle.org/m2/" } // jacoco 0.2 } dependencies { - classpath 'com.android.tools.build:gradle:7.1.0-alpha02' + classpath 'com.android.tools.build:gradle:4.0.1' classpath 'com.google.gms:google-services:4.3.8' classpath 'com.google.firebase:firebase-crashlytics-gradle:2.7.1' diff --git a/diaconn/src/main/java/info/nightscout/androidaps/diaconn/service/DiaconnG8Service.kt b/diaconn/src/main/java/info/nightscout/androidaps/diaconn/service/DiaconnG8Service.kt index d6196efb78..9220e46510 100644 --- a/diaconn/src/main/java/info/nightscout/androidaps/diaconn/service/DiaconnG8Service.kt +++ b/diaconn/src/main/java/info/nightscout/androidaps/diaconn/service/DiaconnG8Service.kt @@ -137,7 +137,7 @@ class DiaconnG8Service : DaggerService() { val pumpFirmwareVersion = sp.getString(resourceHelper.gs(R.string.pumpversion),"") - if(!StringUtils.emptyString(pumpFirmwareVersion) && PumplogUtil.isPumpVersionGe(pumpFirmwareVersion, 2, 83)) { + if(!StringUtils.emptyString(pumpFirmwareVersion) && PumplogUtil.isPumpVersionGe(pumpFirmwareVersion, 3, 0)) { sendMessage(BigAPSMainInfoInquirePacket(injector)) // APS Pump Main Info } else { sendMessage(BasalLimitInquirePacket(injector)) // basal Limit From 641a71221664762e47cd74c5cb814b935c10fb2e Mon Sep 17 00:00:00 2001 From: miyeongkim Date: Fri, 2 Jul 2021 10:07:31 +0900 Subject: [PATCH 2/2] restore gradle file --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index d837484cb6..66960d8c38 100644 --- a/build.gradle +++ b/build.gradle @@ -44,7 +44,7 @@ buildscript { maven { url "https://plugins.gradle.org/m2/" } // jacoco 0.2 } dependencies { - classpath 'com.android.tools.build:gradle:4.0.1' + classpath 'com.android.tools.build:gradle:7.1.0-alpha02' classpath 'com.google.gms:google-services:4.3.8' classpath 'com.google.firebase:firebase-crashlytics-gradle:2.7.1'