bluetoothengine/btnotif/btnotifsrv/src/btnotifpairnotifier.cpp
changeset 52 4545c04e61e1
parent 40 997690c3397a
child 57 5ebadcda06cb
equal deleted inserted replaced
41:0b2439c3e397 52:4545c04e61e1
   194                 {
   194                 {
   195                 // Legacy Pin pairing. Check if a pin code is already available
   195                 // Legacy Pin pairing. Check if a pin code is already available
   196                 // in pairing manager for this device:
   196                 // in pairing manager for this device:
   197                 iParent.GetPinCode( pinCode, iRemote, iMinPinLength );
   197                 iParent.GetPinCode( pinCode, iRemote, iMinPinLength );
   198                 }
   198                 }
   199             if ( pinCode().iLength != 0 )        
   199             if ( pinCode().iLength > 0 )        
   200                 {
   200                 {
   201                 // a pin is ready for this pairing.
   201                 // a pin is ready for this pairing.
   202                 // write it back to client (stack)
   202                 // write it back to client (stack)
   203                 TInt err = iNotifierMessage.Write( EBTNotifSrvReplySlot, pinCode );
   203                 TInt err = iNotifierMessage.Write( EBTNotifSrvReplySlot, pinCode );
   204                 iNotifierMessage.Complete( err );
   204                 iNotifierMessage.Complete( err );