Skip to content

Commit 2c1e7ab

Browse files
committed
bq27441: Fix blockDataClass passing int instead of list.
1 parent 18ec2e5 commit 2c1e7ab

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/bq27441/bq27441/device.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,7 @@ def blockDataControl(self):
495495
# Issue a DataClass() command to set the data class to be accessed
496496

497497
def blockDataClass(self, _id):
498+
_id = [_id]
498499
return self._write_reg(BQ27441_EXTENDED_DATACLASS, _id, 1)
499500

500501
# Issue a DataBlock() command to set the data block to be accessed

0 commit comments

Comments
 (0)