diff --git a/omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/driver/comm/message/MessageIO.kt b/omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/driver/comm/message/MessageIO.kt index 7292efa785..6e750069bc 100644 --- a/omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/driver/comm/message/MessageIO.kt +++ b/omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/driver/comm/message/MessageIO.kt @@ -177,7 +177,7 @@ class MessageIO( } BleCommandSuccess -> { - if (index == packets.size-1) + if (index == packets.size - 1) MessageSendSuccess else MessageSendErrorSending("Received SUCCESS before sending all the data. $index") diff --git a/omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/util/I8n.kt b/omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/util/I8n.kt index ae137fcca6..b34fbf0b1a 100644 --- a/omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/util/I8n.kt +++ b/omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/util/I8n.kt @@ -10,12 +10,12 @@ class I8n { companion object { fun textFromException(exception: Throwable, rs: ResourceHelper): String { return when (exception) { - is FailedToConnectException -> rs.gs(R.string.omnipod_dash_failed_to_connect) + is FailedToConnectException -> rs.gs(R.string.omnipod_dash_failed_to_connect) is ScanFailFoundTooManyException -> rs.gs(R.string.omnipod_dash_found_too_many_pods) - is ScanException -> rs.gs(R.string.omnipod_dash_scan_failed) + is ScanException -> rs.gs(R.string.omnipod_dash_scan_failed) else -> rs.gs(R.string.omnipod_dash_generic_error, exception.toString()) } } } -} \ No newline at end of file +}