Commit 057972bd authored by Dean Camera's avatar Dean Camera
Browse files

Remove unnecessary ErrorCode variable initializations from the LowLevel Host mode demos.

parent b0a25872
...@@ -326,7 +326,7 @@ uint8_t MassStore_MassStorageReset(void) ...@@ -326,7 +326,7 @@ uint8_t MassStore_MassStorageReset(void)
*/ */
uint8_t MassStore_GetMaxLUN(uint8_t* const MaxLUNIndex) uint8_t MassStore_GetMaxLUN(uint8_t* const MaxLUNIndex)
{ {
uint8_t ErrorCode = HOST_SENDCONTROL_Successful; uint8_t ErrorCode;
USB_ControlRequest = (USB_Request_Header_t) USB_ControlRequest = (USB_Request_Header_t)
{ {
......
...@@ -75,7 +75,7 @@ uint8_t Printer_SendData(const void* const PrinterCommands, ...@@ -75,7 +75,7 @@ uint8_t Printer_SendData(const void* const PrinterCommands,
uint8_t Printer_GetDeviceID(char* DeviceIDString, uint8_t Printer_GetDeviceID(char* DeviceIDString,
const uint16_t BufferSize) const uint16_t BufferSize)
{ {
uint8_t ErrorCode = HOST_SENDCONTROL_Successful; uint8_t ErrorCode;
uint16_t DeviceIDStringLength = 0; uint16_t DeviceIDStringLength = 0;
USB_ControlRequest = (USB_Request_Header_t) USB_ControlRequest = (USB_Request_Header_t)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment