Rename method isInvalidCommand() -> isInvalidCommand()
This commit is contained in:
parent
f630fd8042
commit
6816cff10d
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue