I wrote a clue there.
Perhaps a bit too subtle...
byte i=0;
while(i < 64)
{
if(Serial2.available() > 0) // available() does not return true or false
{
someArray[i++] = Serial2.read();
}
}
I wrote a clue there.
Perhaps a bit too subtle...
byte i=0;
while(i < 64)
{
if(Serial2.available() > 0) // available() does not return true or false
{
someArray[i++] = Serial2.read();
}
}