Merge pull request #1111 from nasa/1110

Call follow_address_path for DR_Changes triggers
This commit is contained in:
dbankieris 2021-02-22 12:29:02 -06:00 committed by GitHub
commit 25d91e7852
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -598,6 +598,10 @@ int Trick::DataRecordGroup::data_record(double in_time) {
if ( freq != DR_Always ) {
for (jj = 0; jj < change_buffer.size() ; jj++) {
drb = change_buffer[jj] ;
REF2 * ref = drb->ref ;
if ( ref->pointer_present == 1 ) {
ref->address = follow_address_path(ref) ;
}
if ( memcmp( drb->buffer , drb->ref->address , drb->ref->attr->size) ) {
change_detected = true ;
memcpy( drb->buffer , drb->ref->address , drb->ref->attr->size) ;