Skip to content

Commit 3520a43

Browse files
committed
line reduction in version()
1 parent f10047e commit 3520a43

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

adafruit_mcp9600.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@ def __init__(self, i2c, address=_DEFAULT_ADDRESS, tctype="K", tcfilter=0):
8787
def version(self):
8888
""" MCP9600 chip version """
8989
data = self._read_register(_REGISTER_VERSION, 2)
90-
value = unpack(">xH", data)
91-
return value[0]
90+
return unpack(">xH", data)[0]
9291

9392
@property
9493
def ambient_temperature(self):

0 commit comments

Comments
 (0)