Wear Include Double values into SingleBg for delta and avgDelta

This commit is contained in:
Philoul 2023-09-30 17:01:05 +02:00
parent 1504cfffef
commit d58eca8780
3 changed files with 9 additions and 3 deletions

View file

@ -186,7 +186,9 @@ sealed class EventData : Event() {
val sgv: Double, val sgv: Double,
val high: Double, // highLine val high: Double, // highLine
val low: Double, // lowLine val low: Double, // lowLine
val color: Int = 0 val color: Int = 0,
val deltaMgdl: Double? = null,
val avgDeltaMgdl: Double? = null
) : EventData(), Comparable<SingleBg> { ) : EventData(), Comparable<SingleBg> {
override fun equals(other: Any?): Boolean = override fun equals(other: Any?): Boolean =

View file

@ -986,7 +986,9 @@ class DataHandlerMobile @Inject constructor(
sgv = glucoseValue.recalculated, sgv = glucoseValue.recalculated,
high = highLine, high = highLine,
low = lowLine, low = lowLine,
color = 0 color = 0,
deltaMgdl = glucoseStatus?.delta,
avgDeltaMgdl = glucoseStatus?.shortAvgDelta
) )
} }

View file

@ -27,7 +27,9 @@ class RawDisplayData {
sgv = 0.0, sgv = 0.0,
high = 0.0, high = 0.0,
low = 0.0, low = 0.0,
color = 0 color = 0,
deltaMgdl = null,
avgDeltaMgdl = null
) )
// status bundle // status bundle