Set UsbResponse_InvalidCommand upon encountering with an invalid USB command.
This commit is contained in:
@@ -79,6 +79,7 @@ void UsbProtocolHandler(void)
|
|||||||
UsbCommand_SendKbootCommand();
|
UsbCommand_SendKbootCommand();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
SetUsbError(UsbResponse_InvalidCommand);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,8 +27,8 @@
|
|||||||
} usb_command_id_t;
|
} usb_command_id_t;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
UsbResponse_Success = 0,
|
UsbResponse_Success = 0,
|
||||||
UsbResponse_GenericError = 1,
|
UsbResponse_InvalidCommand = 1,
|
||||||
} usb_response_t;
|
} usb_response_t;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
|
|||||||
Reference in New Issue
Block a user