Fixed overflow found in testing.

RTC was overflowing. This was fixed by changing the type to uint_8 from
int.