aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Chiu <david.chiu@tw.synatpics.com>2020-12-31 12:00:04 +0800
committerVincent Huang <vincenthsw@gmail.com>2020-12-31 01:19:35 -0800
commit3bd485883a0c19cc167e8f4ae954db11a10472ac (patch)
tree652ba2028dd36f0123e7f3d7f312f840b923a08f
parent4b3b901e72cb572e90e1112b7108307b9302fb3c (diff)
downloadrmi4utils-3bd485883a0c19cc167e8f4ae954db11a10472ac.tar.gz
Not triggering rebind driver after entering bootloader mode for TP case.
-rwxr-xr-xrmi4update/rmi4update.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/rmi4update/rmi4update.cpp b/rmi4update/rmi4update.cpp
index 6eb2954..57fb075 100755
--- a/rmi4update/rmi4update.cpp
+++ b/rmi4update/rmi4update.cpp
@@ -1151,9 +1151,9 @@ int RMI4Update::EnterFlashProgrammingV7()
return UPDATE_FAIL_ERASE_ALL;
}
fprintf(stdout, "Erase in BL mode end\n");
+ m_device.RebindDriver();
}
- m_device.RebindDriver();
Sleep(RMI_F34_ENABLE_WAIT_MS);
rc = FindUpdateFunctions();
@@ -1183,7 +1183,10 @@ int RMI4Update::EnterFlashProgramming()
return UPDATE_FAIL_ENABLE_FLASH_PROGRAMMING;
Sleep(RMI_F34_ENABLE_WAIT_MS);
- m_device.RebindDriver();
+ if(m_device.GetDeviceType() != RMI_DEVICE_TYPE_TOUCHPAD) {
+ fprintf(stdout, "not TouchPad, rebind driver here\n");
+ m_device.RebindDriver();
+ }
rc = WaitForIdle(0);
if (rc != UPDATE_SUCCESS)
return UPDATE_FAIL_NOT_IN_IDLE_STATE;