sensorservices/orientationssy/src/SsyOrientation.cpp
branchRCL_3
changeset 81 24127ea5a236
parent 61 8cb079868133
equal deleted inserted replaced
71:fdcef27a50b8 81:24127ea5a236
   919 
   919 
   920     if( !iSensorChannel )
   920     if( !iSensorChannel )
   921         {
   921         {
   922         User::Leave( KErrNotFound );
   922         User::Leave( KErrNotFound );
   923         }
   923         }
   924 
   924     iCurrentOrientationState.iDeviceOrientation = TSensrvOrientationData::EOrientationUndefined;
   925     iSensorChannel->CloseChannel();
   925     iSensorChannel->CloseChannel();
   926     iChannel = NULL;
   926     iChannel = NULL;
   927 
   927 
   928     SSY_TRACE_OUT();
   928     SSY_TRACE_OUT();
   929     }
   929     }
   960 
   960 
   961     if ( !iSensorChannel )
   961     if ( !iSensorChannel )
   962         {
   962         {
   963         User::Leave( KErrNotFound );
   963         User::Leave( KErrNotFound );
   964         }
   964         }
   965 
   965     iCurrentOrientationState.iDeviceOrientation = TSensrvOrientationData::EOrientationUndefined;
   966     iSensorChannel->StopDataListening();
   966     iSensorChannel->StopDataListening();
   967     iChannel = NULL;
   967     iChannel = NULL;
   968 
   968 
   969     SSY_TRACE_OUT();
   969     SSY_TRACE_OUT();
   970     }
   970     }