From 681f13ff42adba1b0c85beaadfa7bce4d0b1373f Mon Sep 17 00:00:00 2001 From: Icy Cloud Date: Mon, 8 Jan 2024 21:39:20 +0800 Subject: [PATCH] fixed parameter passing issue --- ch347api/i2c.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ch347api/i2c.py b/ch347api/i2c.py index 3a449db..4d61f26 100644 --- a/ch347api/i2c.py +++ b/ch347api/i2c.py @@ -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: """