fix new autobugs

This commit is contained in:
geeksville 2020-07-01 15:43:01 -07:00
parent b7d0b7fca4
commit 2520a5e69d
3 changed files with 5 additions and 5 deletions

View file

@ -402,7 +402,7 @@ class BluetoothInterface(val service: RadioInterfaceService, val address: String
// we begin by setting our MTU size as high as it can go (if we can)
if (shouldSetMtu)
safe!!.asyncRequestMtu(512) { mtuRes ->
safe?.asyncRequestMtu(512) { mtuRes ->
try {
mtuRes.getOrThrow() // FIXME - why sometimes is the result Unit!?!
debug("MTU change attempted")