mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-25 03:08:27 +08:00
runtime/i2c: fix artiq_raise_from_c invokation
This commit is contained in:
parent
2f1a2782d2
commit
6b8efd10fd
@ -106,7 +106,7 @@ void i2c_init(int busno)
|
||||
i2c_halfperiod();
|
||||
i2c_halfperiod();
|
||||
if(!i2c_sda_i(busno))
|
||||
artiq_raise_from_c("I2CError", "SDA is stuck low")
|
||||
artiq_raise_from_c("I2CError", "SDA is stuck low", 0, 0, 0);
|
||||
}
|
||||
|
||||
void i2c_start(int busno)
|
||||
|
Loading…
Reference in New Issue
Block a user