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{
if (! Arrays.equals(Arrays.copyOfRange(message, 0,4), MAGIC_NXDT)){
writeUsb(USBSTATUS_INVALID_MAGIC);
logPrinter.print("Invalid 'MAGIC'", EMsgType.INFO);
logPrinter.print("Invalid 'MAGIC'", EMsgType.FAIL);
return true;
}
if (message.length < 0x10){
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 false;