Revert check for plain sn range
This commit is contained in:
parent
43a3d8d8de
commit
5768d3b75a
1 changed files with 3 additions and 0 deletions
|
@ -6,6 +6,9 @@ import info.nightscout.pump.medtrum.encryption.Crypt
|
|||
class MedtrumSnUtil {
|
||||
|
||||
fun getDeviceTypeFromSerial(serial: Long): ModelType {
|
||||
if (serial in 106000000..106999999) {
|
||||
return ModelType.INVALID
|
||||
}
|
||||
|
||||
return when (Crypt().simpleDecrypt(serial)) {
|
||||
in 126000000..126999999 -> ModelType.MD0201
|
||||
|
|
Loading…
Reference in a new issue