if (bufferFull = true) //check if one of the buffers is full
That is NOT what the code does. == is the comparison operator. = is the assignment operator. HUGE difference.
if (bufferFull = true) //check if one of the buffers is full
That is NOT what the code does. == is the comparison operator. = is the assignment operator. HUGE difference.