From 80e2501285bb6535cb65cf4712ba1d0c540d6f41 Mon Sep 17 00:00:00 2001 From: Bluebie Date: Fri, 30 Nov 2012 10:30:45 +1100 Subject: commandline: pspgeek's usb fail workaround --- commandline/library/micronucleus_lib.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'commandline/library') diff --git a/commandline/library/micronucleus_lib.c b/commandline/library/micronucleus_lib.c index 561ddce..6f1ac8d 100644 --- a/commandline/library/micronucleus_lib.c +++ b/commandline/library/micronucleus_lib.c @@ -89,7 +89,9 @@ int micronucleus_eraseFlash(micronucleus* deviceHandle, micronucleus_callback pr i += 0.01; } - if(res!=0) + if (res == -5) + return -2; + if (res != 0) return -1; else return 0; -- cgit v1.2.3