Medtrum: Fix crash on missing ID
This commit is contained in:
parent
3fae634cd1
commit
4a7f90b65b
|
@ -59,7 +59,7 @@ fun PumpType.Companion.fromDbPumpType(pt: InterfaceIDs.PumpType): PumpType =
|
|||
InterfaceIDs.PumpType.USER -> PumpType.USER
|
||||
InterfaceIDs.PumpType.DIACONN_G8 -> PumpType.DIACONN_G8
|
||||
InterfaceIDs.PumpType.EOPATCH2 -> PumpType.EOFLOW_EOPATCH2
|
||||
InterfaceIDs.PumpType.MEDTRUM_NANO -> PumpType.MEDTRUM_NANO
|
||||
InterfaceIDs.PumpType.MEDTRUM -> PumpType.MEDTRUM_NANO
|
||||
InterfaceIDs.PumpType.MEDTRUM_300U -> PumpType.MEDTRUM_300U
|
||||
InterfaceIDs.PumpType.MEDTRUM_UNTESTED -> PumpType.MEDTRUM_UNTESTED
|
||||
InterfaceIDs.PumpType.CACHE -> PumpType.CACHE
|
||||
|
@ -121,7 +121,7 @@ fun PumpType.toDbPumpType(): InterfaceIDs.PumpType =
|
|||
PumpType.USER -> InterfaceIDs.PumpType.USER
|
||||
PumpType.DIACONN_G8 -> InterfaceIDs.PumpType.DIACONN_G8
|
||||
PumpType.EOFLOW_EOPATCH2 -> InterfaceIDs.PumpType.EOPATCH2
|
||||
PumpType.MEDTRUM_NANO -> InterfaceIDs.PumpType.MEDTRUM_NANO
|
||||
PumpType.MEDTRUM_NANO -> InterfaceIDs.PumpType.MEDTRUM
|
||||
PumpType.MEDTRUM_300U -> InterfaceIDs.PumpType.MEDTRUM_300U
|
||||
PumpType.MEDTRUM_UNTESTED -> InterfaceIDs.PumpType.MEDTRUM_UNTESTED
|
||||
PumpType.CACHE -> InterfaceIDs.PumpType.CACHE
|
||||
|
|
|
@ -43,7 +43,7 @@ data class InterfaceIDs(
|
|||
MDI,
|
||||
DIACONN_G8,
|
||||
EOPATCH2,
|
||||
MEDTRUM_NANO,
|
||||
MEDTRUM,
|
||||
MEDTRUM_300U,
|
||||
MEDTRUM_UNTESTED,
|
||||
USER,
|
||||
|
|
Loading…
Reference in a new issue