Commit 8f9e9329 authored by Federico Vaga's avatar Federico Vaga

sw:py: continue to ask data until 'size'

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 25f78812
......@@ -31,4 +31,7 @@ class PySPEC:
"""
Trigger a *device to memory* DMA transfer
"""
return self.dma_file.read(size)
data = []
while size - len(data) > 0:
data += self.dma_file.read(size - len(data))
return data
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment