Skip to content

Commit 5c7ffbc

Browse files
committed
Update i2c test
1 parent 1645bb5 commit 5c7ffbc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hil-test/tests/i2c.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ mod tests {
3131

3232
#[init]
3333
fn init() -> Context {
34-
let (peripherals, clocks) = esp_hal::init(esp_hal::Config::default());
34+
let peripherals = esp_hal::init(esp_hal::Config::default());
3535
let io = Io::new(peripherals.GPIO, peripherals.IO_MUX);
3636

3737
let (sda, scl) = hil_test::i2c_pins!(io);
3838

3939
// Create a new peripheral object with the described wiring and standard
4040
// I2C clock speed:
41-
let i2c = I2C::new(peripherals.I2C0, sda, scl, 100.kHz(), &clocks);
41+
let i2c = I2C::new(peripherals.I2C0, sda, scl, 100.kHz());
4242

4343
Context { i2c }
4444
}

0 commit comments

Comments
 (0)