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 -> {
if (index == packets.size-1)
if (index == packets.size - 1)
MessageSendSuccess
else
MessageSendErrorSending("Received SUCCESS before sending all the data. $index")

View file

@ -10,9 +10,9 @@ 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())
}