kopia lustrzana https://github.com/meshtastic/Meshtastic-Android
Merge remote-tracking branch 'root/master' into dev
commit
e710b67131
|
@ -793,6 +793,7 @@ class MainActivity : AppCompatActivity(), Logging,
|
||||||
connectionJob = mainScope.handledLaunch {
|
connectionJob = mainScope.handledLaunch {
|
||||||
model.meshService = service
|
model.meshService = service
|
||||||
|
|
||||||
|
try {
|
||||||
usbDevice?.let { usb ->
|
usbDevice?.let { usb ->
|
||||||
debug("Switching to USB radio ${usb.deviceName}")
|
debug("Switching to USB radio ${usb.deviceName}")
|
||||||
service.setDeviceAddress(SerialInterface.toInterfaceName(usb.deviceName))
|
service.setDeviceAddress(SerialInterface.toInterfaceName(usb.deviceName))
|
||||||
|
@ -817,7 +818,7 @@ class MainActivity : AppCompatActivity(), Logging,
|
||||||
if (connectionState != MeshService.ConnectionState.CONNECTED)
|
if (connectionState != MeshService.ConnectionState.CONNECTED)
|
||||||
updateNodesFromDevice()
|
updateNodesFromDevice()
|
||||||
|
|
||||||
try {
|
|
||||||
// We won't receive a notify for the initial state of connection, so we force an update here
|
// We won't receive a notify for the initial state of connection, so we force an update here
|
||||||
onMeshConnectionChanged(connectionState)
|
onMeshConnectionChanged(connectionState)
|
||||||
} catch (ex: RemoteException) {
|
} catch (ex: RemoteException) {
|
||||||
|
|
Ładowanie…
Reference in New Issue