/* Convert a string of characters representing a hex buffer into a series of bytes of that real value  */
static void hex_str_to_num(uint8_t *buf, char *in)
/* Convert a string of characters representing a hex buffer into a series of bytes of that real value  */
static void hex_str_to_num(uint8_t *buf, char *in)
{
	int len;
	int i;
	len = strlen(in) / 2;
	for (i = 0; i < len; i++) {
		buf[i] = (char_to_nibble(*in) << 4) | char_to_nibble(*(in+1));
		in += 2;
	}
}