This commit is contained in:
Andrei Vereha 2021-09-21 20:44:15 +02:00
parent 6b441b515e
commit 8767065fda
2 changed files with 4 additions and 4 deletions

View file

@ -177,7 +177,7 @@ class MessageIO(
} }
BleCommandSuccess -> { BleCommandSuccess -> {
if (index == packets.size-1) if (index == packets.size - 1)
MessageSendSuccess MessageSendSuccess
else else
MessageSendErrorSending("Received SUCCESS before sending all the data. $index") MessageSendErrorSending("Received SUCCESS before sending all the data. $index")

View file

@ -10,12 +10,12 @@ class I8n {
companion object { companion object {
fun textFromException(exception: Throwable, rs: ResourceHelper): String { fun textFromException(exception: Throwable, rs: ResourceHelper): String {
return when (exception) { 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 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 -> else ->
rs.gs(R.string.omnipod_dash_generic_error, exception.toString()) rs.gs(R.string.omnipod_dash_generic_error, exception.toString())
} }
} }
} }
} }