utils/litex_server: allow specify uart_baudrate as float
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Thu, 3 Jan 2019 09:38:14 +0000 (10:38 +0100)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Thu, 3 Jan 2019 09:38:14 +0000 (10:38 +0100)
litex/utils/litex_server.py

index 61b375b07b22707a609ebad256f1358d971fe5ba..8bb2f86f5fdca6aceaa3ccf6e464f8292ed3218d 100755 (executable)
@@ -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":