projects
/
litex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c43f6f
)
utils/litex_server: allow specify uart_baudrate as float
author
Florent Kermarrec
<florent@enjoy-digital.fr>
Thu, 3 Jan 2019 09:38:14 +0000
(10:38 +0100)
committer
Florent Kermarrec
<florent@enjoy-digital.fr>
Thu, 3 Jan 2019 09:38:14 +0000
(10:38 +0100)
litex/utils/litex_server.py
patch
|
blob
|
history
diff --git
a/litex/utils/litex_server.py
b/litex/utils/litex_server.py
index 61b375b07b22707a609ebad256f1358d971fe5ba..8bb2f86f5fdca6aceaa3ccf6e464f8292ed3218d 100755
(executable)
--- a/
litex/utils/litex_server.py
+++ b/
litex/utils/litex_server.py
@@
-109,7
+109,7
@@
def main():
if len(sys.argv) > 2:
uart_port = sys.argv[2]
if len(sys.argv) > 3:
- uart_baudrate = int(
sys.argv[3]
)
+ uart_baudrate = int(
float(sys.argv[3])
)
print("[CommUART] port: {} / baudrate: {} / ".format(uart_port, uart_baudrate), end="")
comm = CommUART(uart_port, uart_baudrate)
elif comm == "udp":