/* This function takes a pointer to a string in the format "YYMMDDhhmmss" (2-digit year, 2-digit month, etc), converts it to a 6-byte BCD string, and stores it in the build date field of the EEPROM local copy.  */
static void set_date(const char *string)
/* This function takes a pointer to a string in the format "YYMMDDhhmmss" (2-digit year, 2-digit month, etc), converts it to a 6-byte BCD string, and stores it in the build date field of the EEPROM local copy.  */
static void set_date(const char *string)
{
	unsigned int i;
	if (strlen(string) != 12) {
		printf("Usage: mac date YYMMDDhhmmss\n");
		return;
	}
	for (i = 0; i < 6; i++)
		e.date[i] = h2i(string[2 * i]) << 4 | h2i(string[2 * i + 1]);
	update_crc();
}