From 50eaa2d9ac3e23c5212ba2d0cd1dba4a995ab2c1 Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Mon, 23 Jan 2017 22:50:14 +0100 Subject: hwstub: fix bug in jz4760B boot rom backend probe Change-Id: Idb2b3b3903d88c8f6b494d5c9f04778daf3aaed0 --- utils/hwstub/lib/hwstub_usb.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'utils') 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); -- cgit