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