Fix #4046 Details below: (#4086)

Informed by the discussion in the bug and the code in 'that other branch'
the fix was clear.  Just set a flag if we start handling a write, and
use that flag to guard the long write complete call.
This commit is contained in:
Kevin Hester
2020-09-30 05:27:35 -07:00
committed by GitHub
parent b551310c37
commit 2fd3d042b2
2 changed files with 18 additions and 13 deletions

View File

@ -107,6 +107,7 @@ private:
BLEService* m_pService;
BLEValue m_value;
esp_gatt_perm_t m_permissions = ESP_GATT_PERM_READ | ESP_GATT_PERM_WRITE;
bool m_writeEvt = false; // If we have started a long write, this tells the commit code that we were the target
void handleGATTServerEvent(
esp_gatts_cb_event_t event,