Skip to content

Commit

Permalink
Forgot return
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanhz committed Nov 19, 2019
1 parent 8bb01d8 commit 58e3878
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion osdp/_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def baud_rate(self) -> int:

@property
def is_open(self) -> bool:
self.serial_port is not None and self.serial_port.is_open
return self.serial_port is not None and self.serial_port.is_open

def open(self):
self.serial_port = serial.Serial(port=self._port, baudrate=self._baud_rate, timeout=2.0)
Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
pycryptodome
pycryptodome
pyserial

0 comments on commit 58e3878

Please sign in to comment.