diff -r 1ddbe54d0645 -r ccb4f6b3db21 sensorservices/orientationssy/src/SsyProperty.cpp --- 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; }