Cordio: Assert if memory pool is not exactly the right size

pull/8981/head
Donatien Garnier 2018-12-05 16:12:22 +00:00
parent 1c201b4628
commit b83c4fde66
1 changed files with 3 additions and 1 deletions

View File

@ -330,7 +330,9 @@ void BLE::stack_setup()
buf_pool_desc.pool_count, buf_pool_desc.pool_description
);
MBED_ASSERT(bytes_used != 0);
// This assert will fail if we've either allocated too much or too little memory
// (bytes_used would be set to 0 in that case)
MBED_ASSERT(bytes_used == buf_pool_desc.buffer_size);
WsfTimerInit();
SecInit();