Commit 1785208c authored by Nicolas Tappret's avatar Nicolas Tappret

fix bug in saveAttribute in case of save read only attribute the ref was trunk

parent 2f51fc27
......@@ -1815,14 +1815,17 @@ void AttributeCombiner::add_dynamic_commands()
vector<T> data;
da >> data;
vector<Tango::DevDouble> dataForRef;
// divided by 2 for skip set points
int size = data.size()/2;
// divided by 2 for skip set points only on the read/Write attribute
int size = data.size();
if(attrToSave->rwType == Tango::READ_WRITE){
size = size /2;
}
dataForRef.resize(size);
for(int i = 0 ; i < size ; i++){
dataForRef[i] = (Tango::DevDouble)data[i];
}
}
Tango::DeviceAttribute daWrite(attrToSave->refItem->attName.c_str(),dataForRef);
self->write_attribute(daWrite);
......
Markdown is supported
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