Source relevan upstream changes till 02ac5137.

This commit is contained in:
Johannes Mockenhaupt 2017-10-18 23:18:46 +02:00
parent 23a3068709
commit 51aceadfb1
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1

View file

@ -57,6 +57,10 @@ public class Ruffy extends Service {
@Override @Override
public int doRTConnect() throws RemoteException { public int doRTConnect() throws RemoteException {
if(isConnected()) {
rtHandler.rtStarted();
return 0;
}
step= 0; step= 0;
if(Ruffy.this.rtHandler==null) if(Ruffy.this.rtHandler==null)
{ {
@ -77,9 +81,11 @@ public class Ruffy extends Service {
public void doRTDisconnect() public void doRTDisconnect()
{ {
step = 200; step = 200;
if(btConn!=null) {
stopRT(); stopRT();
btConn.disconnect(); btConn.disconnect();
} }
}
public void rtSendKey(byte keyCode, boolean changed) public void rtSendKey(byte keyCode, boolean changed)
{ {