Skip to content

Commit d268319

Browse files
committed
Variable named should map to the argument name
1 parent e65aba8 commit d268319

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/rfid.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def parse_codes(ser):
4444
yield code
4545

4646

47-
def main(dev, rate, host, port, channel, verbose):
47+
def main(device, rate, host, port, channel, verbose):
4848
# Configure logging to the console if requested.
4949
if verbose:
5050
handler = logging.StreamHandler()
@@ -57,8 +57,8 @@ def main(dev, rate, host, port, channel, verbose):
5757
port=port
5858
)
5959

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

0 commit comments

Comments
 (0)