bluetoothengine/btnotif/btnotifsrv/src/btnotifpairnotifier.cpp
changeset 47 9e2a905b887f
parent 42 b72428996822
child 57 5ebadcda06cb
equal deleted inserted replaced
45:b0aebde9b1fb 47:9e2a905b887f
   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 );