Skip to content

Commit f41f29b

Browse files
authored
Display warning only if verbose is set
1 parent ff62510 commit f41f29b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eeprom/i2c/eeprom_i2c.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def __init__(
3232
page_size=None,
3333
):
3434
self._i2c = i2c
35-
if chip_size not in (T24C32, T24C64, T24C128, T24C256, T24C512):
35+
if chip_size not in (T24C32, T24C64, T24C128, T24C256, T24C512) and verbose:
3636
print("Warning: possible unsupported chip. Size:", chip_size)
3737
# Get no. of EEPROM chips
3838
nchips, min_chip_address = self.scan(verbose, chip_size, addr, max_chips_count)

0 commit comments

Comments
 (0)