v1.9.0 #175
@ -22,11 +22,18 @@
|
||||
#include <cstdio>
|
||||
|
||||
Q7STestTask::Q7STestTask(object_id_t objectId): TestTask(objectId) {
|
||||
doTestSdCard = false;
|
||||
doTestScratchApi = false;
|
||||
doTestGps = false;
|
||||
}
|
||||
|
||||
ReturnValue_t Q7STestTask::performOneShotAction() {
|
||||
//testSdCard();
|
||||
//testScratchApi();
|
||||
if (doTestSdCard) {
|
||||
testSdCard();
|
||||
}
|
||||
if (doTestScratchApi) {
|
||||
testScratchApi();
|
||||
}
|
||||
//testJsonLibDirect();
|
||||
//testDummyParams();
|
||||
//testProtHandler();
|
||||
@ -36,7 +43,9 @@ ReturnValue_t Q7STestTask::performOneShotAction() {
|
||||
}
|
||||
|
||||
ReturnValue_t Q7STestTask::performPeriodicAction() {
|
||||
testGpsDaemon();
|
||||
if(doTestGps) {
|
||||
testGpsDaemon();
|
||||
}
|
||||
return TestTask::performPeriodicAction();
|
||||
}
|
||||
|
||||
|
@ -9,6 +9,10 @@ public:
|
||||
|
||||
ReturnValue_t initialize() override;
|
||||
private:
|
||||
bool doTestSdCard = false;
|
||||
bool doTestScratchApi = false;
|
||||
bool doTestGps = false;
|
||||
|
||||
CoreController* coreController = nullptr;
|
||||
ReturnValue_t performOneShotAction() override;
|
||||
ReturnValue_t performPeriodicAction() override;
|
||||
|
Loading…
Reference in New Issue
Block a user