Use sizeof(array value) instead of sizeof(int16_t).