Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lufa
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Erik Strand
lufa
Commits
d90ef9aa
Commit
d90ef9aa
authored
11 years ago
by
Dean Camera
Browse files
Options
Downloads
Patches
Plain Diff
Only deque from the USBtoSerial's USB->USART buffer when the USART is idle.
parent
3d818fbb
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
LUFA/DoxygenPages/ChangeLog.txt
+1
-0
1 addition, 0 deletions
LUFA/DoxygenPages/ChangeLog.txt
Projects/USBtoSerial/USBtoSerial.c
+2
-2
2 additions, 2 deletions
Projects/USBtoSerial/USBtoSerial.c
with
3 additions
and
2 deletions
LUFA/DoxygenPages/ChangeLog.txt
+
1
−
0
View file @
d90ef9aa
...
@@ -22,6 +22,7 @@
...
@@ -22,6 +22,7 @@
* - Fixed missing HID report ID prefix on HID class driver GetReport request responses (thanks to Bert van Hall)
* - Fixed missing HID report ID prefix on HID class driver GetReport request responses (thanks to Bert van Hall)
* - Library Applications:
* - Library Applications:
* - Fixed spurious 0xFE USART byte sent in the USBtoSerial project when the baud rate is changed (thanks to Carl Kjeldsen)
* - Fixed spurious 0xFE USART byte sent in the USBtoSerial project when the baud rate is changed (thanks to Carl Kjeldsen)
* - Fixed blocking USART reads causing low throughput on slow baud rates in the USBtoSerial project (thanks to Nevada Smith)
*
*
* \section Sec_ChangeLog140302 Version 140302
* \section Sec_ChangeLog140302 Version 140302
* <b>New:</b>
* <b>New:</b>
...
...
This diff is collapsed.
Click to expand it.
Projects/USBtoSerial/USBtoSerial.c
+
2
−
2
View file @
d90ef9aa
...
@@ -133,8 +133,8 @@ int main(void)
...
@@ -133,8 +133,8 @@ int main(void)
}
}
}
}
/* Load the next byte from the USART transmit buffer into the USART */
/* Load the next byte from the USART transmit buffer into the USART
if transmit buffer space is available
*/
if
(
!
(
RingBuffer_IsEmpty
(
&
USBtoUSART_Buffer
)))
if
(
Serial_IsSendReady
()
&&
!
(
RingBuffer_IsEmpty
(
&
USBtoUSART_Buffer
)))
Serial_SendByte
(
RingBuffer_Remove
(
&
USBtoUSART_Buffer
));
Serial_SendByte
(
RingBuffer_Remove
(
&
USBtoUSART_Buffer
));
CDC_Device_USBTask
(
&
VirtualSerial_CDC_Interface
);
CDC_Device_USBTask
(
&
VirtualSerial_CDC_Interface
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment