Skip to content

Instantly share code, notes, and snippets.

@bgklika
Created April 21, 2021 12:54
Show Gist options
  • Save bgklika/8a453e877a51893970707e91d94d5f9a to your computer and use it in GitHub Desktop.
Save bgklika/8a453e877a51893970707e91d94d5f9a to your computer and use it in GitHub Desktop.
diff --git a/src/amazon-freertos/libraries/c_sdk/standard/ble/src/iot_ble_gatt.c b/src/amazon-freertos/libraries/c_sdk/standard/ble/src/iot_ble_gatt.c
index 5f45e9ed4..ff2fc77d7 100644
--- a/src/amazon-freertos/libraries/c_sdk/standard/ble/src/iot_ble_gatt.c
+++ b/src/amazon-freertos/libraries/c_sdk/standard/ble/src/iot_ble_gatt.c
@@ -562,14 +562,12 @@ void _mtuChangedCb( uint16_t connId,
IotLink_t * pEventListIndex;
_bleSubscrEventListElement_t * pEventIndex;
- IotMutex_Lock( &_BTInterface.threadSafetyMutex );
/* Get the event associated to the callback */
IotContainers_ForEach( &_BTInterface.subscrEventListHead[ eBLEMtuChanged ], pEventListIndex )
{
pEventIndex = IotLink_Container( _bleSubscrEventListElement_t, pEventListIndex, eventList );
pEventIndex->subscribedEventCb.pMtuChangedCb( connId, mtu );
}
- IotMutex_Unlock( &_BTInterface.threadSafetyMutex );
}
/*-----------------------------------------------------------*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment