ble_mesh: clear LPN sent_req on failure

This commit is contained in:
lly 2019-09-02 14:22:28 +08:00
parent 4bf4094e40
commit 5f5f5cf305

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: