Merge pull request #1285 from BernhardRo/master
Fixes for issue [3.0.0] CGM Eversense integration does not work #1257
This commit is contained in:
commit
3a1ca9e061
3 changed files with 3 additions and 8 deletions
|
@ -1,5 +1,4 @@
|
||||||
# AndroidAPS
|
# AndroidAPS
|
||||||
|
|
||||||
* Check the wiki: https://androidaps.readthedocs.io
|
* Check the wiki: https://androidaps.readthedocs.io
|
||||||
* Everyone who’s been looping with AndroidAPS needs to fill out the form after 3 days of looping https://docs.google.com/forms/d/14KcMjlINPMJHVt28MDRupa4sz4DDIooI4SrW0P3HSN8/viewform?c=0&w=1
|
* Everyone who’s been looping with AndroidAPS needs to fill out the form after 3 days of looping https://docs.google.com/forms/d/14KcMjlINPMJHVt28MDRupa4sz4DDIooI4SrW0P3HSN8/viewform?c=0&w=1
|
||||||
|
|
||||||
|
|
|
@ -75,7 +75,7 @@ class MM640gPlugin @Inject constructor(
|
||||||
when (val type = jsonObject.getString("type")) {
|
when (val type = jsonObject.getString("type")) {
|
||||||
"sgv" ->
|
"sgv" ->
|
||||||
glucoseValues += CgmSourceTransaction.TransactionGlucoseValue(
|
glucoseValues += CgmSourceTransaction.TransactionGlucoseValue(
|
||||||
timestamp = jsonObject.getLong("sgv"),
|
timestamp = jsonObject.getLong("date"),
|
||||||
value = jsonObject.getDouble("sgv"),
|
value = jsonObject.getDouble("sgv"),
|
||||||
raw = jsonObject.getDouble("sgv"),
|
raw = jsonObject.getDouble("sgv"),
|
||||||
noise = null,
|
noise = null,
|
||||||
|
|
|
@ -55,12 +55,8 @@ open class DataReceiver : DaggerBroadcastReceiver() {
|
||||||
Intents.NS_EMULATOR ->
|
Intents.NS_EMULATOR ->
|
||||||
OneTimeWorkRequest.Builder(MM640gPlugin.MM640gWorker::class.java)
|
OneTimeWorkRequest.Builder(MM640gPlugin.MM640gWorker::class.java)
|
||||||
.setInputData(Data.Builder().also {
|
.setInputData(Data.Builder().also {
|
||||||
it.copyDouble(Intents.EXTRA_BG_ESTIMATE, bundle)
|
it.copyString("collection", bundle)
|
||||||
it.copyString(Intents.EXTRA_BG_SLOPE_NAME, bundle)
|
it.copyString("data", bundle)
|
||||||
it.copyLong(Intents.EXTRA_TIMESTAMP, bundle)
|
|
||||||
it.copyDouble(Intents.EXTRA_RAW, bundle)
|
|
||||||
it.copyInt(Intents.EXTRA_SENSOR_BATTERY, bundle, -1)
|
|
||||||
it.copyString(Intents.XDRIP_DATA_SOURCE_DESCRIPTION, bundle)
|
|
||||||
}.build()).build()
|
}.build()).build()
|
||||||
Telephony.Sms.Intents.SMS_RECEIVED_ACTION ->
|
Telephony.Sms.Intents.SMS_RECEIVED_ACTION ->
|
||||||
OneTimeWorkRequest.Builder(SmsCommunicatorPlugin.SmsCommunicatorWorker::class.java)
|
OneTimeWorkRequest.Builder(SmsCommunicatorPlugin.SmsCommunicatorWorker::class.java)
|
||||||
|
|
Loading…
Reference in a new issue