Pairing should wait until success.

Current pair_pri_to_sec does not wait until success of pairing process
hence making it difficult for the caller to understand the return value
of the callback.

The CL changes the pair_pri_to_sec by doing a busy wait (atomic check of
1sec) and returning to the caller as soon as that happens. This way the
caller can rely on the return value completely.

Change-Id: I974034236c9978fad2387165c46eacf923ad011e
2 files changed
tree: 3d3526832486130747a0c5128245f990cbe430eb
  1. acts/