How to configure buffer size of twi sensor instance

Hello,

  I am using NRF52832.

  I met memory allocation issue in nrf_twi_sensor.c.

  So, I have question about configuration of TWI Sensor.

  Here is my definition for TWI sensor,

#define MAX_PENDING_TRANSACTIONS    33
NRF_TWI_MNGR_DEF(m_nrf_twi_mngr, MAX_PENDING_TRANSACTIONS, TWI_INSTANCE_ID);
NRF_TWI_SENSOR_DEF(m_nrf_twi_sensor, &m_nrf_twi_mngr, 32);

If MAX_PENDING_TRANSACTION is 33, Is size of buffer in TWI sensor definition should be less or equal to 33? Or  Size of buffer in definition of TWI Sensor is not related with that value?

And, If I met "memory is not allocated" issue, Increasing buffer is proper way to solve the issue? 

Thanks,

  Chongchun Moon