Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: whitequark/glasgow
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 3aafe4879545
Choose a base ref
...
head repository: whitequark/glasgow
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 8806951c545a
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Dec 5, 2018

  1. Copy the full SHA
    8806951 View commit details
Showing with 2 additions and 1 deletion.
  1. +2 −1 software/glasgow/access/direct/demultiplexer.py
3 changes: 2 additions & 1 deletion software/glasgow/access/direct/demultiplexer.py
Original file line number Diff line number Diff line change
@@ -109,7 +109,8 @@ async def read(self, length=None, hint=0):
# Always try to allocate at least as many USB buffers as the amount of data we know we're
# going to read from the FIFO. The real value is capped to avoid hitting platform-specific
# limits for USB I/O size (see above).
hint = max(hint, length)
if length is not None:
hint = max(hint, length)

if len(self._buffer_out) > 0:
# Flush the buffer, so that everything written before the read reaches the device.