Skip to content

Commit

Permalink
Variable named should map to the argument name
Browse files Browse the repository at this point in the history
  • Loading branch information
kjagiello committed Aug 25, 2016
1 parent e65aba8 commit d268319
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/rfid.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def parse_codes(ser):
yield code


def main(dev, rate, host, port, channel, verbose):
def main(device, rate, host, port, channel, verbose):
# Configure logging to the console if requested.
if verbose:
handler = logging.StreamHandler()
Expand All @@ -57,8 +57,8 @@ def main(dev, rate, host, port, channel, verbose):
port=port
)

logger.debug('Starting reading from %s with baud rate %d.', dev, rate)
with serial.Serial(dev, rate) as ser:
logger.debug('Starting reading from %s with baud rate %d.', device, rate)
with serial.Serial(device, rate) as ser:
# Discard the first value as it contains just a welcome message
ser.readline()
logger.debug('The connection has been estabilished and the '
Expand Down

0 comments on commit d268319

Please sign in to comment.