bluetoothengine/bteng/src/btengsrvsettingsmgr.cpp
changeset 25 9c3798b88e30
parent 24 8930e1d1d530
child 14 f7fbeaeb166a
child 26 b78e66e88238
--- a/bluetoothengine/bteng/src/btengsrvsettingsmgr.cpp	Fri Apr 23 23:54:40 2010 +0300
+++ b/bluetoothengine/bteng/src/btengsrvsettingsmgr.cpp	Sat Apr 24 00:12:05 2010 +0300
@@ -1,5 +1,5 @@
 /*
-* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+* Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
 * All rights reserved.
 * This component and the accompanying materials are made available
 * under the terms of "Eclipse Public License v1.0"
@@ -402,7 +402,11 @@
     SetVisibilityModeL( EBTVisibilityModeHidden, 0 );
     TBTPowerState power = EBTOff;
     TInt err = GetHwPowerState( power );
-    if( !err && power )
+    // See p2.1.2.1.2 of the UI spec
+    // NB:  Please distinguish between TBTPowerState::EBTOff (defined in hcitypes.h)
+    //      and TBTPowerStateValue::EBTPowerOff (defined in btserversdkcrkeys.h)
+    //      because they have the opposite values
+    if( !err && (power != EBTOff))
         {
         // Show a notification to the user
         TBTGenericInfoNotiferParamsPckg pckg;