 	int i = 0;
 	unsigned char timeByte0 = time & MSB;
 	unsigned char timeByte1 = (time >> 4) & MSB;
-	unsigned char timeByte2 = (time >> 8) & MSB:
+	unsigned char timeByte2 = (time >> 8) & MSB;
 	unsigned char timeByte3 = (time >> 12) & MSB;
 
 	unsigned char A[] = { 0x00, 0x1A, CMD_WRITE, 0x01, numBlocks, startAddress,
 						0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
-						0xDD, 0xA1, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF
+						0xDD, 0xA1, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
 						timeByte3, timeByte2, timeByte1, timeByte0 };
 	unsigned char BCC = checksum( A, sizeof(A)/sizeof(A[0]) );
 	unsigned char CMD[31];
+	unsigned char response[bufferSize];
 
 	CMD[0] = STX;
 	memcpy( CMD + 1, A, sizeof(A)/sizeof(A[0]) );

		BCC = BCC ^ A[i];
	}

	return BCC
}

void MF_SNR(unsigned char DADD) {

char txrxbuffer[bufferSize];

const int ledPin = 13;
const int signalPin = 4;
const int debounce = 25;

void setup() {
