 	return 1.0 / rtk;
 }
 
-void format_temp(double t, uint8_t *buf) {
+void format_temp(units_t units, double t, uint8_t *buf) {
 	uint8_t u = centigrade;
 	if (units == fahr)
 		u = fahrenheit;

		*buf++ = minus;
	}
	int temp = (int)(t + 0.5);
	for (int pow = 100; pow > 0; pow /= 10) {
		int dig = temp / pow;
		temp -= dig * pow;
		*buf++ = digits[dig];
	}
	*buf++ = 0;
}

void reformat() {
	format_temp(curr_temp, buf);
	p = buf;
	bits(*p++);
}

void setup(void)


void loop(void)
{
	static uint8_t buf[8], *p = buf;
	static double curr_temp = 0.0;
	static uint32_t last;
	uint32_t now = millis();

