From 7a02a0762054cde165efc176e7100d18b9c26b33 Mon Sep 17 00:00:00 2001 From: Kristian Sloth Lauszus Date: Tue, 8 Oct 2013 19:51:20 +0200 Subject: [PATCH] Don't change error code if it returned hrJERR --- BTD.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/BTD.cpp b/BTD.cpp index 921b0714..5ed762a5 100755 --- a/BTD.cpp +++ b/BTD.cpp @@ -110,7 +110,8 @@ FailGetDevDescr: #ifdef DEBUG_USB_HOST NotifyFailGetDevDescr(rcode); #endif - rcode = USB_ERROR_FailGetDevDescr; + if (rcode != hrJERR) + rcode = USB_ERROR_FailGetDevDescr; Release(); return rcode; };