mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-23 08:48:35 +03:00
Fix reading SDA in I2C bit-banging code
We need to use pin_sda_in, not pin_sda to read the PIO Input.
This commit is contained in:
@@ -52,7 +52,7 @@ static bool read_sda(void)
|
|||||||
bool ret;
|
bool ret;
|
||||||
|
|
||||||
PIO_Configure(&pin_sda_in, PIO_LISTSIZE(pin_sda_in));
|
PIO_Configure(&pin_sda_in, PIO_LISTSIZE(pin_sda_in));
|
||||||
if (PIO_Get(&pin_sda))
|
if (PIO_Get(&pin_sda_in))
|
||||||
ret = true;
|
ret = true;
|
||||||
else
|
else
|
||||||
ret = false;
|
ret = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user