Skip to content

Commit 1859eee

Browse files
committed
Also convert the supplied altitude to int
1 parent fbaca15 commit 1859eee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_scd30.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def altitude(self):
139139

140140
@altitude.setter
141141
def altitude(self, altitude):
142-
self._send_command(_CMD_SET_ALTITUDE_COMPENSATION, altitude)
142+
self._send_command(_CMD_SET_ALTITUDE_COMPENSATION, int(altitude))
143143

144144
@property
145145
def temperature_offset(self):

0 commit comments

Comments
 (0)