Skip to content

Commit

Permalink
report port grep results, PEP-8 cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
itsb committed Jan 10, 2021
1 parent 0aa6960 commit dbf8ccb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dmxpy/DmxPy.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ def __init__(self, serial_port=None, baud_rate=57600, default_level=255,
self.dmx_size = dmx_size
if serial_port is None:
serial_port = grep_ports(port_grep)
print('Found DMX device matching %s at' % port_grep, serial_port)
try:
self.serial = serial.Serial(serial_port, baudrate=baud_rate)
except serial.SerialException:
Expand Down Expand Up @@ -62,7 +63,7 @@ def main():
help='if port not specified attempt to auto-detect '
'serial matching grep (default: 0403:6001)')
parser.add_argument('-l', '--level', type=int, default=255,
choices=range(0,256),
choices=range(0, 256),
help='default level [0-255] of unspecified channels '
'(default: 255)')
parser.add_argument('-s', '--size', type=int, default=512,
Expand Down

0 comments on commit dbf8ccb

Please sign in to comment.