Fix sporadic hangup when stopping notifies
This commit is contained in:
1 parent
7f96cc2ffc
commit
3bc73d5fb0
3 files changed
+12
-1
No files matched your search
@@ -210,6 +210,11 @@ bool BLEConnection::getHvnPacket (void)
|
||||
return xSemaphoreTake(_hvn_sem, ms2tick(BLE_GENERIC_TIMEOUT));
|
||||
}
|
||||
|
||||
bool BLEConnection::releaseHvnPacket(void)
|
||||
{
|
||||
return xSemaphoreGive(_hvn_sem);
|
||||
}
|
||||
|
||||
bool BLEConnection::getWriteCmdPacket (void)
|
||||
{
|
||||
return xSemaphoreTake(_wrcmd_sem, ms2tick(BLE_GENERIC_TIMEOUT));
|
||||
|
||||
Reference in new issue
Block a user