Replace override function by default in BGSourceInterface
This commit is contained in:
parent
a548b9c55c
commit
6fe1a4ab1f
|
@ -145,10 +145,6 @@ class DexcomPlugin @Inject constructor(
|
|||
}
|
||||
}
|
||||
|
||||
override fun getSensorBatteryLevel(): Int {
|
||||
return -1
|
||||
}
|
||||
|
||||
companion object {
|
||||
private val PACKAGE_NAMES = arrayOf("com.dexcom.cgm.region1.mgdl", "com.dexcom.cgm.region1.mmol",
|
||||
"com.dexcom.cgm.region2.mgdl", "com.dexcom.cgm.region2.mmol",
|
||||
|
|
|
@ -45,8 +45,4 @@ class GlimpPlugin @Inject constructor(
|
|||
bgReading.raw = 0.0
|
||||
MainApp.getDbHelper().createIfNotExists(bgReading, "GLIMP")
|
||||
}
|
||||
|
||||
override fun getSensorBatteryLevel(): Int {
|
||||
return -1
|
||||
}
|
||||
}
|
|
@ -65,8 +65,4 @@ class MM640gPlugin @Inject constructor(
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
override fun getSensorBatteryLevel(): Int {
|
||||
return -1
|
||||
}
|
||||
}
|
|
@ -91,8 +91,4 @@ class NSClientSourcePlugin @Inject constructor(
|
|||
lastBGTimeStamp = timeStamp
|
||||
}
|
||||
}
|
||||
|
||||
override fun getSensorBatteryLevel(): Int {
|
||||
return -1
|
||||
}
|
||||
}
|
|
@ -69,8 +69,4 @@ class PoctechPlugin @Inject constructor(
|
|||
aapsLogger.error("Exception: ", e)
|
||||
}
|
||||
}
|
||||
|
||||
override fun getSensorBatteryLevel(): Int {
|
||||
return -1
|
||||
}
|
||||
}
|
|
@ -100,9 +100,4 @@ class RandomBgPlugin @Inject constructor(
|
|||
}
|
||||
aapsLogger.debug(LTag.BGSOURCE, "Generated BG: $bgReading")
|
||||
}
|
||||
|
||||
|
||||
override fun getSensorBatteryLevel(): Int {
|
||||
return -1
|
||||
}
|
||||
}
|
||||
|
|
|
@ -53,8 +53,4 @@ class TomatoPlugin @Inject constructor(
|
|||
nsUpload.sendToXdrip(bgReading)
|
||||
}
|
||||
}
|
||||
|
||||
override fun getSensorBatteryLevel(): Int {
|
||||
return -1
|
||||
}
|
||||
}
|
|
@ -10,5 +10,7 @@ public interface BgSourceInterface {
|
|||
|
||||
void handleNewData(Intent intent);
|
||||
|
||||
int getSensorBatteryLevel();
|
||||
default int getSensorBatteryLevel() {
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue