diff options
author | Andrew Duggan <aduggan@synaptics.com> | 2015-03-16 15:43:54 -0700 |
---|---|---|
committer | Andrew Duggan <aduggan@synaptics.com> | 2015-03-16 15:43:54 -0700 |
commit | 5597d1e03907ef7a2e130755baf20ee996bf85bb (patch) | |
tree | 7f0c86e3ee8c3467f66ce8bf7ec1bd8b2aea9ba2 | |
parent | 1bf175e042630bdb13de83622ce67ca3f3cd522d (diff) | |
download | platform_external_rmi4utils-5597d1e03907ef7a2e130755baf20ee996bf85bb.tar.gz platform_external_rmi4utils-5597d1e03907ef7a2e130755baf20ee996bf85bb.tar.bz2 platform_external_rmi4utils-5597d1e03907ef7a2e130755baf20ee996bf85bb.zip |
Add error message when the tool refuses to update the device if the firmware image is not newer then the firmware on the device
-rw-r--r-- | rmi4update/rmi4update.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rmi4update/rmi4update.cpp b/rmi4update/rmi4update.cpp index 6502a9e..2888e24 100644 --- a/rmi4update/rmi4update.cpp +++ b/rmi4update/rmi4update.cpp @@ -124,6 +124,8 @@ int RMI4Update::UpdateFirmware(bool force, bool performLockdown) if (!force && m_firmwareImage.HasIO()) { if (m_firmwareImage.GetFirmwareID() <= m_device.GetFirmwareID()) { m_device.Reset(); + fprintf(stderr, "Firmware image (%ld) is not newer then the firmware on the device (%ld)\n", + m_firmwareImage.GetFirmwareID(), m_device.GetFirmwareID()); return UPDATE_FAIL_FIRMWARE_IMAGE_IS_OLDER; } } |