 void loop() {
 	bool responseFlag = false;
 	unsigned long elapsedTime = 0;
-	unsigned char readData[bufferSize/2];
+	unsigned char readData[bufferSize];
 	digitalWrite(ledPin, LOW);
 
 	// Scan for RFID tags

	// Write time data to card
	MF_WRITE(0x01, 0x05, elapsedTime);
	delay(200);
	responseFlag = getResponse();
	if(responseFlag == false) Serial.println("Unexpected result");

}

bool getResponse(unsigned char ) {
	int i = 0;
	// buffer for response packet
	unsigned char response[bufferSize];

		MF_SNR();
		delay(200);
		// getResponse determines if the response packet is OK
		responseFlag = getResponse(readData);
	}

	// RFID tag detected, read block that contains time data
	digitalWrite(ledPin, HIGH);
	MF_READ(0x01, 0x05);
	delay(200);
	responseFlag = getResponse(readData);
	// Analyze data
	if(responseFlag == false) Serial.println("Unexpected result");

	// Get ready to accumulate time
