Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
ArduinoCore-avr
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
ArduinoCore-avr
Commits
2717fbe0
Commit
2717fbe0
authored
Jul 11, 2016
by
Arturo Guadalupi
Committed by
GitHub
Jul 11, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4864 from sandeepmistry/avr-usb-tx
Subtract one from USB_EP_SIZE in USB_SendSpace
parents
2a10caa4
5e3d08af
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
cores/arduino/USBCore.cpp
cores/arduino/USBCore.cpp
+3
-1
No files found.
cores/arduino/USBCore.cpp
View file @
2717fbe0
...
...
@@ -255,7 +255,9 @@ u8 USB_SendSpace(u8 ep)
LockEP
lock
(
ep
);
if
(
!
ReadWriteAllowed
())
return
0
;
return
USB_EP_SIZE
-
FifoByteCount
();
// subtract 1 from the EP size to never send a full packet,
// this avoids dealing with ZLP's in USB_Send
return
USB_EP_SIZE
-
1
-
FifoByteCount
();
}
// Blocking Send of data to an endpoint
...
...
Write
Preview
Markdown
is supported
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