egismoc: Convert the check value to little endian

In this way we can support the big-endian architectures too.
This commit is contained in:
Marco Trevisan (Treviño)
2024-02-19 21:45:53 +01:00
parent 59dc585ccd
commit 5462db9901
2 changed files with 2 additions and 1 deletions

View File

@@ -310,7 +310,7 @@ egismoc_get_check_bytes (const guchar *value,
for (int i = 0; i < steps; i++) for (int i = 0; i < steps; i++)
sum_values += big_endian_values[i]; sum_values += big_endian_values[i];
check_bytes.check_value = 0xffff - (sum_values % 0xffff); check_bytes.check_value = GUINT16_TO_LE (0xffff - (sum_values % 0xffff));
return check_bytes; return check_bytes;
} }

View File

@@ -149,6 +149,7 @@ endian_independent_drivers = virtual_drivers + [
'aes3500', 'aes3500',
'aes4000', 'aes4000',
'egis0570', 'egis0570',
'egismoc',
'elanmoc', 'elanmoc',
'etes603', 'etes603',
'focaltech_moc', 'focaltech_moc',