From: Florent Kermarrec Date: Thu, 3 Jan 2019 09:38:14 +0000 (+0100) Subject: utils/litex_server: allow specify uart_baudrate as float X-Git-Tag: 24jan2021_ls180~1420 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9f5d0cef6b86e526ed18e008d25cfa1df38c33d1;p=litex.git utils/litex_server: allow specify uart_baudrate as float --- diff --git a/litex/utils/litex_server.py b/litex/utils/litex_server.py index 61b375b0..8bb2f86f 100755 --- 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":