somenthing on calibration

This commit is contained in:
2020-03-19 11:41:55 +01:00
parent c2639854fa
commit 6091271f37
3 changed files with 30 additions and 7 deletions

View File

@ -123,7 +123,7 @@ public:
return fifoFree->pop(ptr);
}
virtual int isBusy() {return busy;}
virtual int isBusy() {if (fifoData->isEmpty() && busy==0) return 0; else return 1;}
//protected:
/** Implement this method in your subclass with the code you want your thread to run. */
@ -249,7 +249,7 @@ protected:
}
void * processData() {
busy=1;
// busy=1;
while (!stop) {
if (fifoData->isEmpty()) {
busy=0;
@ -259,6 +259,7 @@ protected:
fifoData->pop(data); //blocking!
det->processData(data);
fifoFree->push(data);
//busy=0;
}
}
return NULL;