{
while (Thread.currentThread() == reader)
{
- try
+ if (pin.available()==0)
+ {try
{
this.wait(100);
} catch (InterruptedException ie)
{
- }
+ }}
+
while (pin.available() != 0)
{
String input = this.readLine(pin);
while (Thread.currentThread() == reader2)
{
- try
+ if (pin2.available()==0) {
+ try
{
this.wait(100);
} catch (InterruptedException ie)
{
}
+ }
while (pin2.available() != 0)
{
String input = this.readLine(pin2);