Skip to content

Commit

Permalink
Add a fix for examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Lihan Guo committed Feb 21, 2011
1 parent 16a0f58 commit 405ac57
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/adaptorplugin/sampleadaptor.cpp
Expand Up @@ -51,7 +51,7 @@ SampleAdaptor::SampleAdaptor(const QString& id) :
// Provide the output buffer with name and description. Name is used
// to locate the buffer from the listening side, description is
// currently unused.
setAdaptedSensor("sample", "Sample sensor, with dummy buffer", outputBuffer_);
addAdaptedSensor("sample", "Sample sensor, with dummy buffer", outputBuffer_);

// Provide information on the data range this adaptor can output
// (based on the adapted sensor naturally). Parameters of DataRange
Expand Down
4 changes: 2 additions & 2 deletions examples/chainplugin/samplechain.cpp
Expand Up @@ -105,7 +105,7 @@ bool SampleChain::start()
filterBin_->start();

// Adaptors are started on buffer basis, thus the buffer name
sampleAdaptor_->startSensor();
sampleAdaptor_->startSensor("sample");
}
return true;
}
Expand All @@ -115,7 +115,7 @@ bool SampleChain::stop()
{
if (AbstractSensorChannel::stop()) {
sensordLogD() << "Stopping SampleChain";
sampleAdaptor_->stopSensor();
sampleAdaptor_->stopSensor("sample");
filterBin_->stop();
}
return true;
Expand Down

0 comments on commit 405ac57

Please sign in to comment.