Skip to content

Commit 99165b8

Browse files
author
Thomas Kopriva
committed
Merge pull request #31 in SA/ble_examples from LPRFAPPS-777_audio_receiver_memory_leak_fix to ble_examples-2.2-develop
Squashed commit of the following: commit 05d9d5873ffb6f7a262d54ff00d542b7e7439a87 Author: Marie Hernes <[email protected]> Date: Wed Apr 5 16:05:12 2017 +0200 LPRFAPPS-777 Fixed memory leak commit 539add28313d7b7620eb54b734f6f830bb424db9 Author: Marie Hernes <[email protected]> Date: Wed Apr 5 15:57:31 2017 +0200 Revert "LPRFAPPS-777 Fixed memory leak." This reverts commit 55d7ee56290514873eb9c0d8767d65657d3f2188. commit ac598b4bb7f7a80faa993ba8556abb19a1312801 Author: Marie Hernes <[email protected]> Date: Wed Apr 5 15:41:41 2017 +0200 LPRFAPPS-777 Fixed memory leak.
1 parent efade62 commit 99165b8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/examples/simple_central_audio_receiver/cc26xx/app/simple_central_audio_receiver.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1388,6 +1388,7 @@ static void SimpleBLECentral_processGATTMsg(gattMsgEvent_t *pMsg)
13881388
i2sParams.pvContBuffer = (void *) audio_decoded;
13891389
i2sParams.ui32conBufTotalSize = sizeof(int16_t) * (streamVariables.samplesPerFrame * I2SCC26XX_QUEUE_SIZE);
13901390
I2SCC26XX_open(i2sHandle, &i2sParams);
1391+
Display_print0(dispHandle, 5, 0, "Opened I2S driver");
13911392
streamVariables.i2sOpened = TRUE;
13921393
}
13931394
#else //STREAM_TO_PC
@@ -1449,6 +1450,9 @@ static void SimpleBLECentral_processGATTMsg(gattMsgEvent_t *pMsg)
14491450
{
14501451
sbc_finish(&sbc);
14511452
}
1453+
}
1454+
if (streamVariables.i2sOpened == TRUE)
1455+
{
14521456
I2SCC26XX_close(i2sHandle);
14531457
streamVariables.i2sOpened = FALSE;
14541458
Display_print0(dispHandle, 5, 0, "Closed I2S driver");

0 commit comments

Comments
 (0)