Commit 929e8ec9 authored by Joseph Mirabel's avatar Joseph Mirabel
Browse files

Check config size in Device::currentConfiguration

parent 7fbf5af9
......@@ -33,6 +33,7 @@ namespace hpp {
bool AbstractDevice::currentConfiguration (ConfigurationIn_t configuration)
DeviceData& data = d();
assert (configuration.size() == data.currentConfiguration_.size());
if (configuration != data.currentConfiguration_) {
data.currentConfiguration_ = configuration;
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