projects
/
soc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8fd0b82
)
return None if data returned is empty
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Fri, 19 Nov 2021 13:17:27 +0000
(13:17 +0000)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Fri, 19 Nov 2021 13:17:27 +0000
(13:17 +0000)
src/soc/debug/jtagutils.py
patch
|
blob
|
history
diff --git
a/src/soc/debug/jtagutils.py
b/src/soc/debug/jtagutils.py
index a642bd1f358cbab7f639505a3f5475ec0625ae7c..79418e28ed27c88037fac58268e758f2aedfacbc 100644
(file)
--- a/
src/soc/debug/jtagutils.py
+++ b/
src/soc/debug/jtagutils.py
@@
-157,7
+157,7
@@
class JTAGServer:
def jtagremote_server_recv(self, tdo):
data = self.get_data(1, 0) # read 1 byte, non-blocking
- if data is None:
+ if data is None
or len(data) == 0
:
return None # no data read
data = bytes.decode(data)
if self.debug: