Changeset 161:7c780e113dd5 in rrlib_serialization


Ignore:
Timestamp:
31.05.2017 23:30:06 (2 years ago)
Author:
Max Reichardt <mreichardt@…>
Branch:
17.03
Phase:
public
Message:

Fixes bug in register auto-publishing mechanism (possibly serialized entries from wrong register)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tOutputStream.cpp

    r158 r161  
    265265 
    266266          // compatibility with legacy parts 
    267           PublishedRegisters::SerializeEntries(*this, register_uid, status.elements_written[i], current_size); 
     267          PublishedRegisters::SerializeEntries(*this, i, status.elements_written[i], current_size); 
    268268          WriteShort(-1); 
    269269        } 
     
    272272          WriteByte(i); 
    273273          WriteInt(current_size - status.elements_written[i]); 
    274           PublishedRegisters::SerializeEntries(*this, register_uid, status.elements_written[i], current_size); 
     274          PublishedRegisters::SerializeEntries(*this, i, status.elements_written[i], current_size); 
    275275        } 
    276276        status.elements_written[i] = current_size; 
Note: See TracChangeset for help on using the changeset viewer.