/* Simple function to replace printf with float formatting.  */
static void print_float(float temp)
/* Simple function to replace printf with float formatting.  */
static void print_float(float temp)
{
	uint8_t i;
	int32_t j;
	float f;
	f = 100.00 * temp;
	j = (int32_t)f;
	if (temp > 0) {
		i = j - (int32_t)temp * 100;
	} else {
		i = (int32_t)temp * 100 - j;
	}
	j = j / 100;
	printf("%d.%d mv \n\r", (int32_t)j, (int32_t)i);
}