Fixed a bug noticed on mspgcc 4.6.3; using static uint8_t inside a function is a no-no!