mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-27 01:29:58 +01:00
[apps/sequence][apps/graph] Checksum takes into account whether the
function is active and its name Change-Id: I790d9a793c512a686f21f1db4fc0848a16baea5c
This commit is contained in:
@@ -87,6 +87,9 @@ uint32_t Sequence::checksum() {
|
||||
strlcpy(data, text(), TextField::maxBufferSize());
|
||||
strlcpy(data+TextField::maxBufferSize(), firstInitialConditionText(), TextField::maxBufferSize());
|
||||
strlcpy(data+2*TextField::maxBufferSize(), secondInitialConditionText(), TextField::maxBufferSize());
|
||||
data[k_dataLengthInBytes-3] = (char)m_type;
|
||||
data[k_dataLengthInBytes-2] = name()!= nullptr ? name()[0] : 0;
|
||||
data[k_dataLengthInBytes-1] = isActive() ? 1 : 0;
|
||||
return Ion::crc32((uint32_t *)data, k_dataLengthInBytes>>2);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user