Correct function definition in previous commit

Function argument definition did not match code.
Needed to change uint16_t to uint32_t