diff options
author | David Chiu <dchiu@synaptics.com> | 2022-04-29 11:04:46 +0800 |
---|---|---|
committer | David Chiu <dchiu@synaptics.com> | 2022-04-29 11:04:46 +0800 |
commit | 833d55ac8895265d756ccde3f5255320e213dad9 (patch) | |
tree | 6b5adae4094e008cec589891f8d838129f40357f | |
parent | b081422856340e9a95880edf8621a172797410b8 (diff) | |
download | rmi4utils-833d55ac8895265d756ccde3f5255320e213dad9.tar.gz |
Rename function
-rwxr-xr-x | rmi4update/rmi4update.cpp | 10 | ||||
-rwxr-xr-x | rmi4update/rmi4update.h | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/rmi4update/rmi4update.cpp b/rmi4update/rmi4update.cpp index 6a21c38..5338234 100755 --- a/rmi4update/rmi4update.cpp +++ b/rmi4update/rmi4update.cpp @@ -1119,7 +1119,7 @@ int RMI4Update::WriteFlashConfigV7() do { Sleep(20); rmi4update_poll(); - if (CheckWriteProtectionActivated()) { + if (IsWriteProtectionSupported()) { if (m_flashStatus == WRITE_PROTECTION) return UPDATE_FAIL_WRITE_PROTECTED; } @@ -1256,7 +1256,7 @@ int RMI4Update::WriteFLDV7() do { Sleep(20); rmi4update_poll(); - if (CheckWriteProtectionActivated()) { + if (IsWriteProtectionSupported()) { if (m_flashStatus == WRITE_PROTECTION) return UPDATE_FAIL_WRITE_PROTECTED; } @@ -1450,7 +1450,7 @@ int RMI4Update::EraseFlashConfigV10() do { Sleep(20); rmi4update_poll(); - if (CheckWriteProtectionActivated()) { + if (IsWriteProtectionSupported()) { if (m_flashStatus == WRITE_PROTECTION) return UPDATE_FAIL_WRITE_PROTECTED; } @@ -1581,7 +1581,7 @@ int RMI4Update::EraseFirmwareV7() do { Sleep(20); rmi4update_poll(); - if (CheckWriteProtectionActivated()) { + if (IsWriteProtectionSupported()) { if (m_flashStatus == WRITE_PROTECTION) return UPDATE_FAIL_WRITE_PROTECTED; } @@ -1989,7 +1989,7 @@ int RMI4Update::WaitForIdle(int timeout_ms, bool readF34OnSucess) return UPDATE_SUCCESS; } -bool RMI4Update::CheckWriteProtectionActivated() +bool RMI4Update::IsWriteProtectionSupported() { if ((m_bootloaderID[1] >= 10) || ((m_bootloaderID[1] == 8) && (m_bootloaderID[0] >= 7))){ diff --git a/rmi4update/rmi4update.h b/rmi4update/rmi4update.h index 80923dd..cfc5d21 100755 --- a/rmi4update/rmi4update.h +++ b/rmi4update/rmi4update.h @@ -195,7 +195,7 @@ private: int GetFirmwareSize() { return m_blockSize * m_fwBlockCount; } int GetConfigSize() { return m_blockSize * m_configBlockCount; } int WriteSignatureV7(enum signature_BLv7 signature_partition, unsigned char* data, int offset); - bool CheckWriteProtectionActivated(); + bool IsWriteProtectionSupported(); private: RMIDevice & m_device; |