|
@@ -460,14 +460,7 @@ void Client::run()
|
|
|
// Scheduled commands
|
|
|
if(!myCmdScheduled.isEmpty() && !myCmdScheduledTimer->isActive())
|
|
|
{
|
|
|
- if(myCmdScheduled == "say s-p")
|
|
|
- {
|
|
|
- say("s-p");
|
|
|
- mySPDetectionTimer->start(2000);
|
|
|
- }
|
|
|
- else
|
|
|
- sendCmd(myCmdScheduled.toAscii().data());
|
|
|
-
|
|
|
+ sendCmd(myCmdScheduled.toAscii().data());
|
|
|
myCmdScheduled.clear();
|
|
|
}
|
|
|
|
|
@@ -526,8 +519,9 @@ void Client::setAutoDetectSP(bool autoDetect)
|
|
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
|
void Client::spDetection()
|
|
|
{
|
|
|
- scheduleCmd("say s-p", 2000);
|
|
|
-// say("s-p");
|
|
|
+// scheduleCmd("say s-p", 2000);
|
|
|
+ say("s-p");
|
|
|
+ mySPDetectionTimer->start(2000);
|
|
|
}
|
|
|
|
|
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|