Add print to identify monitor type.
This commit is contained in:
parent
1ef9a97a02
commit
3fb85ec726
1 changed files with 2 additions and 0 deletions
|
|
@ -24,11 +24,13 @@ if 0x0b in i2c_address_list:
|
||||||
lc709203.pack_size = PackSize.MAH400
|
lc709203.pack_size = PackSize.MAH400
|
||||||
|
|
||||||
device = lc709203
|
device = lc709203
|
||||||
|
print("Battery monitor: LC709203")
|
||||||
|
|
||||||
elif 0x36 in i2c_address_list:
|
elif 0x36 in i2c_address_list:
|
||||||
max17048 = MAX17048(board.I2C())
|
max17048 = MAX17048(board.I2C())
|
||||||
|
|
||||||
device = max17048
|
device = max17048
|
||||||
|
print("Battery monitor: MAX17048")
|
||||||
|
|
||||||
else:
|
else:
|
||||||
raise Exception("Battery monitor not found.")
|
raise Exception("Battery monitor not found.")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue