diff options
author | David Chiu <dchiu@synaptics.com> | 2022-02-22 16:31:48 +0800 |
---|---|---|
committer | Vincent Huang <vincenthsw@gmail.com> | 2022-02-24 17:26:53 +0800 |
commit | 8809cf56b01cf3c613bd631986945aba80a6aca1 (patch) | |
tree | 49c9eb905aff3c534844a903bfec2235bfb563a9 | |
parent | 1247098b0d36234b72c92faaca6588de9e790a08 (diff) | |
download | rmi4utils-8809cf56b01cf3c613bd631986945aba80a6aca1.tar.gz |
Separate the product ID checking from touchscreen's flow
-rwxr-xr-x | rmi4update/rmi4update.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/rmi4update/rmi4update.cpp b/rmi4update/rmi4update.cpp index 0dcd6ec..fb34953 100755 --- a/rmi4update/rmi4update.cpp +++ b/rmi4update/rmi4update.cpp @@ -125,9 +125,14 @@ int RMI4Update::UpdateFirmware(bool force, bool performLockdown) fprintf(stdout, "Device Properties:\n"); m_device.PrintProperties(); - rc = m_firmwareImage.VerifyImageProductID(m_device.GetProductID()); - if (rc != UPDATE_SUCCESS) - return rc; + if (m_device.GetDeviceType() == RMI_DEVICE_TYPE_TOUCHPAD) { + rc = m_firmwareImage.VerifyImageProductID(m_device.GetProductID()); + if (rc != UPDATE_SUCCESS) + return rc; + } else { + fprintf(stdout, "not touchpad, skip checking product ID\n"); + } + rc = DisableNonessentialInterupts(); if (rc != UPDATE_SUCCESS) |