diff -r ccb4f6b3db21 -r 8cb079868133 sensorservices/orientationssy/src/SsyChannel.cpp --- a/sensorservices/orientationssy/src/SsyChannel.cpp Tue Aug 31 16:29:05 2010 +0300 +++ b/sensorservices/orientationssy/src/SsyChannel.cpp Wed Sep 01 12:34:26 2010 +0100 @@ -208,12 +208,7 @@ // CSSYChannel::RunError() // ---------------------------------------------------------------------------------- // -#ifdef _DEBUG TInt CSSYChannel::RunError( TInt aError ) -#else -// not used in UREL builds -TInt CSSYChannel::RunError( TInt /*aError*/ ) -#endif { SSY_TRACE( EMust, "ORIENTATIONSSY:RunError %d", aError ); @@ -308,6 +303,17 @@ break; case EChannelOpening: { + // Before completing channel opening, get max data rate from actual SSY + if ( !iSensorProperties->DataRateUpdated() ) + { + TSensrvProperty maxdatarate; + RSensrvChannelList affectedChannels; + // Get max data rate + iOrientationHandler->GetMaxDataRateL( maxdatarate ); + // Set property + iSensorProperties->SetProperty( maxdatarate, affectedChannels ); + } + SetChannelState( EChannelOpen ); iCallback->ChannelOpened( iChannelInfo.iChannelId, iStatus.Int(), this, this ); break;