Don't bounce the interface if the UI changes to a device we are already using

This commit is contained in:
geeksville 2020-07-04 16:54:48 -07:00
parent 73b8eef25b
commit bae1a124d2
4 changed files with 45 additions and 29 deletions

View file

@ -62,7 +62,7 @@ interface IMeshService {
/// If a macaddress we will try to talk to our device, if null we will be idle.
/// Any current connection will be dropped (even if the device address is the same) before reconnecting.
/// Users should not call this directly, only used internally by the MeshUtil activity
void setDeviceAddress(String deviceAddr);
boolean setDeviceAddress(String deviceAddr);
/// Get basic device hardware info about our connected radio. Will never return NULL. Will throw
/// RemoteException if no my node info is available

View file

@ -14,5 +14,5 @@ interface IRadioInterfaceService {
/// If a macaddress we will try to talk to our device, if null we will be idle.
/// Any current connection will be dropped (even if the device address is the same) before reconnecting.
/// Users should not call this directly, called only by MeshService
void setDeviceAddress(String deviceAddr);
boolean setDeviceAddress(String deviceAddr);
}