Skip to content

Commit

Permalink
fixed parameter passing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
i2cy committed Jan 8, 2024
1 parent 43223fe commit 681f13f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ch347api/i2c.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def __init__(self, addr: int, clock_freq_level: int = 1, ch347_device: CH347HIDD

if not self.dev.i2c_initiated:
# initialize i2c device if doesn't
self.dev.init_I2C()
self.dev.init_I2C(clock_freq_level=clock_freq_level)

def write(self, reg: (int, bytes) = None, data: (int, bytes) = None) -> bool:
"""
Expand Down

0 comments on commit 681f13f

Please sign in to comment.