ble_mesh: clear LPN sent_req on failure

This commit is contained in:
lly
2019-09-02 14:22:28 +08:00
parent a214fb2821
commit 27bc688ed8

View File

@@ -764,6 +764,7 @@ static void lpn_timeout(struct k_work *work)
}
lpn->counter++;
lpn_set_state(BLE_MESH_LPN_ENABLED);
lpn->sent_req = 0U;
k_delayed_work_submit(&lpn->timer, FRIEND_REQ_RETRY_TIMEOUT);
break;
case BLE_MESH_LPN_OFFER_RECV: