From 6816cff10d534ebf5db8b1a44196976050fee733 Mon Sep 17 00:00:00 2001 From: Dmitry Isaenko Date: Sat, 9 May 2020 17:51:48 +0300 Subject: [PATCH] Rename method isInvalidCommand() -> isInvalidCommand() --- src/main/java/nsusbloader/Utilities/NxdtUsbAbi1.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);