Skip to content

Commit db0aa88

Browse files
committed
lint
1 parent 1d1c159 commit db0aa88

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

adafruit_scd30.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,8 @@ def _read_register(self, reg_addr):
285285
self._buffer[1] = reg_addr & 0xFF
286286
with self.i2c_device as i2c:
287287
i2c.write(self._buffer, end=2)
288-
# separate readinto because the SCD30 wants an i2c stop before the read (non-repeated start)
288+
# separate readinto because the SCD30 wants an i2c stop before the read
289+
# (non-repeated start)
289290
time.sleep(0.005) # min 3 ms delay
290291
i2c.readinto(self._buffer, end=3)
291292
if not self._check_crc(self._buffer[:2], self._buffer[2]):

examples/scd30_simpletest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
# SPDX-License-Identifier: Unlicense
44
import time
55
import board
6-
import adafruit_scd30
76
import busio
7+
import adafruit_scd30
88

99
# SCD-30 has tempremental I2C with clock stretching, and delays
1010
# It's best to start using I2C clock 1000 Hz and then you can increase it

0 commit comments

Comments
 (0)