Skip to content

Commit d0131f2

Browse files
committed
Fix failure report out of the RCM for MacOS
1 parent a82a993 commit d0131f2

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

src/main/java/nsusbloader/Utilities/RcmTask.java

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -269,15 +269,8 @@ private boolean writeUsb(byte[] message){
269269
* MacOS version of RcmSmash class
270270
* */
271271
boolean smashMacOS(){
272-
int result;
273-
274-
ByteBuffer writeBuffer = ByteBuffer.allocateDirect(28672); //writeBuffer.order() equals BIG_ENDIAN; 28672
275-
result = LibUsb.controlTransfer(handler, (byte) 0x82, LibUsb.REQUEST_GET_STATUS, (short) 0, (short) 0, writeBuffer, 1000);
276-
if (result < 0){
277-
logPrinter.print("Failed to smash the stack ("+UsbErrorCodes.getErrCode(result)+")"+
278-
"\n\n Execution stopped and failed.", EMsgType.FAIL);
279-
return true;
280-
}
272+
ByteBuffer writeBuffer = ByteBuffer.allocateDirect(28672);
273+
LibUsb.controlTransfer(handler, (byte) 0x82, LibUsb.REQUEST_GET_STATUS, (short) 0, (short) 0, writeBuffer, 1000); // Result doesn't matter.
281274
logPrinter.print(".:: Payload complete ::.", EMsgType.PASS);
282275
return false;
283276
}

0 commit comments

Comments
 (0)