summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2017-01-23 22:50:14 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2017-01-24 15:25:14 +0100
commit50eaa2d9ac3e23c5212ba2d0cd1dba4a995ab2c1 (patch)
tree5150db75520ac162adf0ca13c09e9e4587ccf589 /utils
parent8fabbb008c1a31c809a3d97f22351f141a2bd02d (diff)
downloadrockbox-50eaa2d9ac3e23c5212ba2d0cd1dba4a995ab2c1.tar.gz
rockbox-50eaa2d9ac3e23c5212ba2d0cd1dba4a995ab2c1.tar.bz2
rockbox-50eaa2d9ac3e23c5212ba2d0cd1dba4a995ab2c1.zip
hwstub: fix bug in jz4760B boot rom backend probe
Change-Id: Idb2b3b3903d88c8f6b494d5c9f04778daf3aaed0
Diffstat (limited to 'utils')
-rw-r--r--utils/hwstub/lib/hwstub_usb.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/utils/hwstub/lib/hwstub_usb.cpp b/utils/hwstub/lib/hwstub_usb.cpp
index 37249f5812..2020af0804 100644
--- a/utils/hwstub/lib/hwstub_usb.cpp
+++ b/utils/hwstub/lib/hwstub_usb.cpp
@@ -525,7 +525,9 @@ error jz_handle::probe()
* this code will leaves registers and ram is the same state as before.
* In case of failure, simply assume JZ4760. */
if(m_desc_jz.wChipID == 0x4760)
- probe_jz4760b();
+ m_probe_status = probe_jz4760b();
+ else
+ m_probe_status = error::SUCCESS;
/** Fill descriptors */
m_desc_version.bLength = sizeof(m_desc_version);