comboctl-parser: Fix battery in ExtendedAndMultiwaveBolusMainScreenParser

Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
This commit is contained in:
Carlos Rafael Giani 2023-01-01 12:28:32 +01:00
parent 8d9e5cc833
commit 7598ae758c

View file

@ -1416,7 +1416,7 @@ class ExtendedAndMultiwaveBolusMainScreenParser : Parser() {
} }
val batteryState = batteryStateFromSymbol( val batteryState = batteryStateFromSymbol(
if (parseResult.size >= 7) parseResult.valueAt<Glyph.SmallSymbol>(5).symbol else null if (parseResult.size >= 7) parseResult.valueAt<Glyph.SmallSymbol>(6).symbol else null
) )
val remainingBolusDuration = parseResult.valueAt<LocalDateTime>(0) val remainingBolusDuration = parseResult.valueAt<LocalDateTime>(0)