This should be uint8, not uint8_t.