sensorservices/orientationssy/src/SsyProperty.cpp
branchRCL_3
changeset 21 ccb4f6b3db21
parent 0 4e1aa6a622a0
child 22 8cb079868133
--- a/sensorservices/orientationssy/src/SsyProperty.cpp	Thu Aug 19 11:09:10 2010 +0300
+++ b/sensorservices/orientationssy/src/SsyProperty.cpp	Tue Aug 31 16:29:05 2010 +0300
@@ -52,7 +52,11 @@
 
     for ( TInt index = 0; index < aNumberOfProperties ; index++ )
         {
-        iChannelProperties.Append( aProperties[ index ] );
+        if(iChannelProperties.Append( aProperties[ index ])!= KErrNone )
+        {
+         iChannelProperties.Reset();
+         break;
+        }
         }
 
     SSY_TRACE_OUT();
@@ -297,14 +301,13 @@
 
     else if ( aProperty.GetPropertyId() == KSensrvPropIdDataRate )
         {
-        SSY_TRACE( EExtended, "ORIENTATIONSSY: Updating data rate property" );
-        // Data rate property is replaced in a different way than others.
-        // Note that this can be done only once as this property is set to read only.
-        aProperty.GetValue( intValue );
-        // Leave value to 0, update only max value because that is the only value we can provide
+        // Since Orientation is an event, the data rate property is made readonly.
+        // In ssyconfiguration.h file, the datarate property is defined as writable,
+        // it is not modified due to backward compatibility. 
+        // Now it is changed and the orientation channel property is made readonly always.
+        
         if( iChannelProperties.Count() >= index )
             {
-            iChannelProperties[index].iIntMaxValue = intValue;
             iChannelProperties[index].iReadOnly = ETrue;
             }