Revert "synaptics-rmi: Use the build ID as the version number to match the vendor tool"

This reverts commit 28ab968cbf as Synaptics
deviced that vmajor and vminor would actually be useful.
This commit is contained in:
Richard Hughes 2019-11-26 08:25:45 +00:00
parent f1a4d87063
commit 28e8b953d0

View File

@ -574,8 +574,11 @@ fu_synaptics_rmi_device_setup (FuDevice *device, GError **error)
} }
/* set versions */ /* set versions */
fw_ver = g_strdup_printf ("%u", priv->flash.build_id); fw_ver = g_strdup_printf ("%u.%u.%u",
fu_device_set_version (device, fw_ver, FWUPD_VERSION_FORMAT_PLAIN); f01_basic->data[2],
f01_basic->data[3],
priv->flash.build_id);
fu_device_set_version (device, fw_ver, FWUPD_VERSION_FORMAT_TRIPLET);
bl_ver = g_strdup_printf ("%u.0", priv->flash.bootloader_id[1]); bl_ver = g_strdup_printf ("%u.0", priv->flash.bootloader_id[1]);
fu_device_set_version_bootloader (device, bl_ver); fu_device_set_version_bootloader (device, bl_ver);