 
 void loop()
 {
-	// Flush
+	// Flush the serial input buffer
 	Serial.flush();
 	while (Serial.available() > 0) {
 #if DEBUG

	while (n) {
		int a;
		while (n && (a = Serial.available()) > 0) {
			c = Serial.read();
#if DEBUG
			Serial.print(F("Dc = "));
			Serial.print(c);

#define DEBUG 0

const uint16_t MAX_BUFFER_SIZE = SERIAL_RX_BUFFER_SIZE - 1;
const uint32_t BLOCK_SIZE = 32 * 1024L;
uint16_t buffer_size = 0;
uint32_t threshold = 0;

void setup()
{
