moved more functions from threads to packet processing loop
@@ -2244,13 +2244,16 @@ while(1)
if(digitalRead(7) == 1)
{
digitalWrite(0, HIGH);
- globalclose();
+ wantstopflag = true;
}
+ if(wantstopflag == false)
+ {
digitalWrite(0, HIGH);
delay (25);
digitalWrite(0, LOW);
delay (25);
}
+ }
return NULL;
}
#endif
