Typos fixes
This commit is contained in:
parent
0307eaaa90
commit
b1966fe3af
1 changed files with 2 additions and 2 deletions
|
@ -140,12 +140,12 @@ class NxdtUsbAbi1 {
|
||||||
private boolean isInvalidDirective(byte[] message) throws Exception{
|
private boolean isInvalidDirective(byte[] message) throws Exception{
|
||||||
if (! Arrays.equals(Arrays.copyOfRange(message, 0,4), MAGIC_NXDT)){
|
if (! Arrays.equals(Arrays.copyOfRange(message, 0,4), MAGIC_NXDT)){
|
||||||
writeUsb(USBSTATUS_INVALID_MAGIC);
|
writeUsb(USBSTATUS_INVALID_MAGIC);
|
||||||
logPrinter.print("Invalid 'MAGIC'", EMsgType.INFO);
|
logPrinter.print("Invalid 'MAGIC'", EMsgType.FAIL);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (message.length < 0x10){
|
if (message.length < 0x10){
|
||||||
writeUsb(USBSTATUS_MALFORMED_REQUEST);
|
writeUsb(USBSTATUS_MALFORMED_REQUEST);
|
||||||
logPrinter.print("Invalid directive size. Expected size is 4096 while received is "+message.length, EMsgType.INFO);
|
logPrinter.print("Invalid directive size. "+message.length+" bytes received.", EMsgType.FAIL);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue