I imagine you want uint8_t here too, not uint32_t