mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2025-11-15 07:38:12 +00:00
egismoc: Convert the check value to little endian
In this way we can support the big-endian architectures too.
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -149,6 +149,7 @@ endian_independent_drivers = virtual_drivers + [
|
|||||||
'aes3500',
|
'aes3500',
|
||||||
'aes4000',
|
'aes4000',
|
||||||
'egis0570',
|
'egis0570',
|
||||||
|
'egismoc',
|
||||||
'elanmoc',
|
'elanmoc',
|
||||||
'etes603',
|
'etes603',
|
||||||
'focaltech_moc',
|
'focaltech_moc',
|
||||||
|
|||||||
Reference in New Issue
Block a user