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
f27e8fe1
Commit
f27e8fe1
authored
Jan 04, 2017
by
Cristian Maglie
Committed by
Cristian Maglie
Mar 16, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Subtract one from USB_EP_SIZE in USB_SendSpace"
This reverts commit 817d700a7503b269f986075cad637ce56c657e37.
parent
942744d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
cores/arduino/USBCore.cpp
cores/arduino/USBCore.cpp
+1
-3
No files found.
cores/arduino/USBCore.cpp
View file @
f27e8fe1
...
...
@@ -256,9 +256,7 @@ u8 USB_SendSpace(u8 ep)
LockEP
lock
(
ep
);
if
(
!
ReadWriteAllowed
())
return
0
;
// 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
();
return
USB_EP_SIZE
-
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