From afb5acefa1693bc4b8cc4a0fba22c2b45bf7015e Mon Sep 17 00:00:00 2001 From: Fergus Noble Date: Tue, 24 Mar 2015 14:38:24 -0700 Subject: [PATCH] EXAMPLES: Code review readability feedback --- python/README.md | 4 ++-- python/sbp/client/examples/simple.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/python/README.md b/python/README.md index f7b0103386..845788a9c7 100644 --- a/python/README.md +++ b/python/README.md @@ -23,7 +23,7 @@ pip install libsbp Receives SBP messages over a serial port, decodes `MSG_BASELINE` messages and prints them out. -See the [`source code`](sbp/client/examples/simple.py) +See the [`source code`](sbp/client/examples/simple.py). Run the example: @@ -36,7 +36,7 @@ $ python -m sbp.client.examples.simple -p /path/to/serial/port Receives SBP messages over a serial port and sends all incoming messages to a UDP socket. -See the [`source code`](sbp/client/examples/udp.py) +See the [`source code`](sbp/client/examples/udp.py). Run the example: diff --git a/python/sbp/client/examples/simple.py b/python/sbp/client/examples/simple.py index 4ac64f0347..a04fca128a 100644 --- a/python/sbp/client/examples/simple.py +++ b/python/sbp/client/examples/simple.py @@ -45,7 +45,7 @@ def main(): args = parser.parse_args() # Open a connection to Piksi using the default baud rate (1Mbaud) - with PySerialDriver(args.port[0], 1000000) as driver: + with PySerialDriver(args.port[0], baud=1000000) as driver: # Create a handler to connect our Piksi driver to our callbacks with Handler(driver.read, driver.write, verbose=True) as handler: # Add a callback for BASELINE_NED messages