Merge remote-tracking branch 'root/master' into dev

pull/226/head
Kevin Hester 2021-02-01 22:54:18 +08:00
commit e710b67131
1 zmienionych plików z 25 dodań i 24 usunięć

Wyświetl plik

@ -793,6 +793,7 @@ class MainActivity : AppCompatActivity(), Logging,
connectionJob = mainScope.handledLaunch {
model.meshService = service
try {
usbDevice?.let { usb ->
debug("Switching to USB radio ${usb.deviceName}")
service.setDeviceAddress(SerialInterface.toInterfaceName(usb.deviceName))
@ -817,7 +818,7 @@ class MainActivity : AppCompatActivity(), Logging,
if (connectionState != MeshService.ConnectionState.CONNECTED)
updateNodesFromDevice()
try {
// We won't receive a notify for the initial state of connection, so we force an update here
onMeshConnectionChanged(connectionState)
} catch (ex: RemoteException) {