mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-20 06:10:31 +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:
@@ -29,6 +29,8 @@ Function& Function::operator=(const Function& other) {
|
||||
uint32_t Function::checksum() {
|
||||
char data[k_dataLengthInBytes/sizeof(char)] = {};
|
||||
strlcpy(data, m_text, TextField::maxBufferSize());
|
||||
data[k_dataLengthInBytes-2] = m_name != nullptr ? m_name[0] : 0;
|
||||
data[k_dataLengthInBytes-1] = m_active ? 1 : 0;
|
||||
return Ion::crc32((uint32_t *)data, k_dataLengthInBytes>>2);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user