added debugcomment
This commit is contained in:
@@ -30,14 +30,18 @@ HardwareSetup::~HardwareSetup(){
|
||||
void HardwareSetup::run(){
|
||||
int index;
|
||||
while(!this->stop){
|
||||
index +=1;
|
||||
|
||||
usleep(500);
|
||||
|
||||
if(getDea()){
|
||||
index +=1;
|
||||
if(!deaBefore){
|
||||
index = 0;
|
||||
deaBefore = true;
|
||||
emit Dea();
|
||||
}
|
||||
//Debug
|
||||
//std::cout << index << std::endl;
|
||||
}
|
||||
else{
|
||||
deaBefore = false;
|
||||
|
||||
Reference in New Issue
Block a user