Commit deeb1568 authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Joseph Mirabel
Browse files

Device::currentConfiguration return true if the configuration was

modified.
parent e9412360
......@@ -166,12 +166,16 @@ namespace hpp {
return currentConfiguration_;
}
/// Set current configuration
virtual void currentConfiguration (ConfigurationIn_t configuration)
/// \return True if the current configuration was modified and false if
/// the current configuration did not change.
virtual bool currentConfiguration (ConfigurationIn_t configuration)
{
if (configuration != currentConfiguration_) {
upToDate_ = false;
currentConfiguration_ = configuration;
return true;
}
return false;
}
/// Get the neutral configuration
Configuration_t neutralConfiguration () const;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment