Set UsbResponse_InvalidCommand upon encountering with an invalid USB command.

This commit is contained in:
László Monda
2017-11-05 19:12:37 +01:00
parent 3f52819c0e
commit eb451d6153
2 changed files with 3 additions and 2 deletions

View File

@@ -79,6 +79,7 @@ void UsbProtocolHandler(void)
UsbCommand_SendKbootCommand(); UsbCommand_SendKbootCommand();
break; break;
default: default:
SetUsbError(UsbResponse_InvalidCommand);
break; break;
} }
} }

View File

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