Try building against ruffy stable, 8dae0c0fedd5e371e85da3433a07aaab27b05db0
This commit is contained in:
parent
7bd7c7d035
commit
f70cbbc6c0
|
@ -6,7 +6,8 @@ import org.monkey.d.ruffy.ruffy.driver.IRTHandler;
|
|||
|
||||
interface IRuffyService {
|
||||
|
||||
void setHandler(IRTHandler handler);
|
||||
void addHandler(IRTHandler handler);
|
||||
void removeHandler(IRTHandler handler);
|
||||
|
||||
/** Connect to the pump
|
||||
*
|
||||
|
@ -17,7 +18,10 @@ interface IRuffyService {
|
|||
/** Disconnect from the pump */
|
||||
void doRTDisconnect();
|
||||
|
||||
/*What's the meaning of 'changed'?
|
||||
* changed means if a button state has been changed, like btton pressed is a change and button release another*/
|
||||
void rtSendKey(byte keyCode, boolean changed);
|
||||
void resetPairing();
|
||||
boolean isConnected();
|
||||
boolean isBoundToPump();
|
||||
}
|
||||
|
|
|
@ -48,7 +48,6 @@ public class RuffyScripter {
|
|||
|
||||
public void start(IRuffyService newService) {
|
||||
try {
|
||||
/*
|
||||
if (ruffyService != null) {
|
||||
try {
|
||||
ruffyService.removeHandler(mHandler);
|
||||
|
@ -56,7 +55,6 @@ public class RuffyScripter {
|
|||
// ignore
|
||||
}
|
||||
}
|
||||
*/
|
||||
if (newService != null) {
|
||||
this.ruffyService = newService;
|
||||
// TODO this'll be done better in v2 via ConnectionManager
|
||||
|
@ -64,7 +62,7 @@ public class RuffyScripter {
|
|||
idleDisconnectMonitorThread.start();
|
||||
}
|
||||
started = true;
|
||||
newService.setHandler(mHandler);
|
||||
newService.addHandler(mHandler);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
log.error("Unhandled exception starting RuffyScripter", e);
|
||||
|
|
Loading…
Reference in a new issue