Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Erik Strand
lufa
Commits
f05224ec
Commit
f05224ec
authored
May 01, 2009
by
Dean Camera
Browse files
Fix minor build errors.
parent
58e42c6c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Demos/Device/DualCDC/DualCDC.c
View file @
f05224ec
...
...
@@ -207,7 +207,7 @@ EVENT_HANDLER(USB_UnhandledControlPacket)
Endpoint_ClearSETUP
();
/* Write the line coding data to the control endpoint */
Endpoint_Write_Control_Stream_LE
(
LineCodingData
,
sizeof
(
CDC_Line_Coding_t
)
,
Endpoint_MemSpaceCallback_RAM
);
Endpoint_Write_Control_Stream_LE
(
LineCodingData
,
sizeof
(
CDC_Line_Coding_t
));
/* Finalize the stream transfer to send the last packet or clear the host abort */
Endpoint_ClearOUT
();
...
...
@@ -304,7 +304,7 @@ TASK(CDC1_Task)
Endpoint_SelectEndpoint
(
CDC1_TX_EPNUM
);
/* Write the String to the Endpoint */
Endpoint_Write_Stream_LE
(
ReportString
,
strlen
(
ReportString
)
,
Endpoint_MemSpaceCallback_RAM
);
Endpoint_Write_Stream_LE
(
ReportString
,
strlen
(
ReportString
));
/* Finalize the stream transfer to send the last packet */
Endpoint_ClearIN
();
...
...
@@ -351,7 +351,7 @@ TASK(CDC2_Task)
Endpoint_SelectEndpoint
(
CDC2_TX_EPNUM
);
/* Write the received data to the endpoint */
Endpoint_Write_Stream_LE
(
&
Buffer
,
DataLength
,
Endpoint_MemSpaceCallback_RAM
);
Endpoint_Write_Stream_LE
(
&
Buffer
,
DataLength
);
/* Finalize the stream transfer to send the last packet */
Endpoint_ClearIN
();
...
...
Demos/Host/MassStorageHost/MassStorageHost.c
View file @
f05224ec
...
...
@@ -408,7 +408,7 @@ void UpdateStatus(uint8_t CurrentStatus)
*/
void
ShowDiskReadError
(
char
*
CommandString
,
bool
FailedAtSCSILayer
,
uint8_t
ErrorCode
)
{
if
(
CommandFailed
)
if
(
FailedAtSCSILayer
)
{
/* Display the error code */
printf_P
(
PSTR
(
ESC_BG_RED
"SCSI command error (%S).
\r\n
"
),
CommandString
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment