diff --git a/src/main/java/nsusbloader/Utilities/NxdtUsbAbi1.java b/src/main/java/nsusbloader/Utilities/NxdtUsbAbi1.java index 24bdba1..8a9c0a4 100644 --- a/src/main/java/nsusbloader/Utilities/NxdtUsbAbi1.java +++ b/src/main/java/nsusbloader/Utilities/NxdtUsbAbi1.java @@ -102,7 +102,7 @@ class NxdtUsbAbi1 { while (true){ directive = readUsbCmd(); - if (isInvalidCommand(directive)) + if (isInvalidDirective(directive)) continue; command = getLEint(directive, 4); @@ -132,7 +132,7 @@ class NxdtUsbAbi1 { } }; - private boolean isInvalidCommand(byte[] message) throws Exception{ + private boolean isInvalidDirective(byte[] message) throws Exception{ if (! Arrays.equals(Arrays.copyOfRange(message, 0,4), MAGIC_NXDT)){ writeUsb(USBSTATUS_INVALID_MAGIC); logPrinter.print("Invalid magic command", EMsgType.INFO);