From 8767065fda8bba927fdbfbd44a0c155a0ba2a292 Mon Sep 17 00:00:00 2001 From: Andrei Vereha Date: Tue, 21 Sep 2021 20:44:15 +0200 Subject: [PATCH] format --- .../pump/omnipod/dash/driver/comm/message/MessageIO.kt | 2 +- .../androidaps/plugins/pump/omnipod/dash/util/I8n.kt | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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 +}