Typos fixes

This commit is contained in:
Dmitry Isaenko 2020-05-10 02:53:31 +03:00
parent 0307eaaa90
commit b1966fe3af

View file

@ -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;